Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
from struct import unpack
from bcc import BPF
from socket import if_indextoname
C_BPF_KPROBE = """
#include <net/sock.h>
@Flashwalker
Flashwalker / Disable Ryzen turboboost.md
Created March 5, 2024 12:29
Disable Ryzen turboboost

Disable Ryzen turboboost

Tests first

Check if turboboost is active

$ sudo cpupower frequency-info | grep 'boost state support' -A2 | grep Active

Active: yes ❌

Check the current driver

@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active November 17, 2024 08:08
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@sidneys
sidneys / giphy.direct-gif-image-download-button.js
Last active February 11, 2023 17:37
UserScript | GIPHY | Direct GIF Image Download Button
// ==UserScript==
// @name GIPHY | Direct GIF Image Download Button
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/13433a0c726895597fb4571405c7ca15/raw/
// @version 0.9.1
// @description Adds a button for directly downloding the original GIF images to the side menu. Uses the given GIF title as the local filename.
// @author sidneys
// @icon https://giphy.com/static/img/favicon.png
// @include http*://giphy.com/gifs/*
// @require https://greasyfork.org/scripts/38888-greasemonkey-color-log/code/Greasemonkey%20%7C%20Color%20Log.js
@mishazawa
mishazawa / menurc
Created October 20, 2018 16:57
ps -> gimp keybindings
; This file installs keyboard shortcuts from Photoshop 6 in GIMP 2.8.
;
; Rename it to 'menurc' and place it into your personal GIMP directory:
; ~/.gimp-2.8 folder (Linux) or C:\Documents and Settings\<user>\.gimp-2.8
; folder (Windows).
;
; There is a web-page describing these keybindings at
; http://epierce.freeshell.org/gimp/gimp_ps.php
;
(gtk_accel_path "<Actions>/view/view-shrink-wrap" "")
@mort3za
mort3za / torrc
Last active September 28, 2024 13:40
Using tor with bridges, torrc example config (bit.ly/m3torrc)
# sudo apt-get install obfs4proxy obfsproxy tor
# sudo vi /etc/tor/torrc
UseBridges 1
ClientTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
# send email to [email protected] with body `get transport obfs4` you can get new bridges.
bridge obfs4 195.154.49.15:44705 BACD07DACE996093DC7635F33A98C49... cert=xc/wtKNWADfJQf232xSXT0WpzsaINw6fgPvZBy5Rkw4.../ypaZPDug9L... iat-mode=0
@gornostal
gornostal / README.md
Last active November 5, 2024 11:42
Ulauncher Color Themes

This will be a temporary site for sharing Ulauncher color themes

When posting a theme make sure it has

  • title (theme name or whatever)
  • link to a gist or github repo with theme files
  • screenshot attached (just drag an image onto a comment area)

@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@nathanchrs
nathanchrs / unset-proxy
Created February 23, 2017 12:53
Bash script to disable proxy on Linux set by set-proxy script.
#!/usr/bin/env bash
# Disables proxy settings set by set-proxy.
# By nathanchrs.
# Set environment variables
export http_proxy=
export HTTP_PROXY=
export https_proxy=