Skip to content

Instantly share code, notes, and snippets.

@rigwild
rigwild / record.vb
Created March 7, 2022 11:17
Export Powerpoint presentation as a 60 fps video
' Save presentation as pptm then create a macro in "View > Macros", run it
Sub MkVideo()
If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then
ActivePresentation.CreateVideo FileName:=Environ("USERPROFILE") & "\Desktop\video.wmv", _
UseTimingsAndNarrations:=True, _
VertResolution:=1080, _
FramesPerSecond:=60, _
Quality:=100
Else: MsgBox "There is another conversion to video in progress"
End If
@davidbau
davidbau / runningstats.py
Last active December 20, 2025 22:24
Running stats objects for pytorch: mean, variance, covariance, second-moment, quantiles, topk, and combinations.
'''
To use a runningstats object,
1. Create the the desired stat object, e.g., `m = Mean()`
2. Feed it batches via the add method, e.g., `m.add(batch)`
3. Repeat step 2 any number of times.
4. Read out the statistic of interest, e.g., `m.mean()`
Built-in runningstats objects include:
@Geczy
Geczy / 3 runner.sh
Last active December 20, 2025 22:22
free american airlines wifi
#!/bin/bash
# If not running via sudo, exit
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
# quit if jq is not installed
if ! command -v jq &>/dev/null; then
@hackermondev
hackermondev / research.md
Last active December 20, 2025 22:22
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@jarun
jarun / netplan.md
Last active December 20, 2025 22:19
Ubuntu Server 20.04 on Raspberry Pi 4: WiFi configuration from terminal with Netplan

List the network devices.

$ ls /sys/class/net
eth0  lo  wlan0

Edit the config file.

@jgrodziski
jgrodziski / docker-aliases.sh
Last active December 20, 2025 22:08
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@gilangvperdana
gilangvperdana / README.md
Last active December 20, 2025 22:06
Make your Ubuntu Server be Router!

Goals

  • Can use Ubuntu Server 20.04 LTS to be Router Gateway include DHCP Server
  • Client who connected to Ubuntu Server can be access Internet

Environement

  • Ubuntu 20.04 LTS
  • 2 Interface
    • 1 Interface from WAN / ISP (enp2s0)
    • 1 Interface for distribution clients (enx00e04c534458)
@munrocket
munrocket / wgsl_noise.md
Last active December 20, 2025 22:04
WGSL Noise Algorithms

WGSL Noise Algorithms

Good and fast integer hash

// https://www.pcg-random.org/
fn pcg(n: u32) -> u32 {
    var h = n * 747796405u + 2891336453u;
    h = ((h >> ((h >> 28u) + 4u)) ^ h) * 277803737u;
    return (h >> 22u) ^ h;
}
@JBGruber
JBGruber / README.md
Last active December 20, 2025 21:58
Update all R packages using pak

Most efficient way to bring all packages on your system up to the newes version. Use with

source("https://gist.githubusercontent.com/JBGruber/f751d414ced2374b9856451531c5997d/raw/yay.r")
yay()

Limitation

Only update CRAN packages due to the usage of old.packages(). Let me know if you have a better way to find outdated packages.

@agamm
agamm / settings.json
Created December 20, 2025 19:10
Claude code waiting for user input notification
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Waiting...\" with title \"Claude Code\"'",
"timeout": 35
}