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 May 16, 2024 00:01
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
@mort3za
mort3za / torrc
Last active March 14, 2024 14:44
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 bridges@torproject.org 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 May 18, 2024 08:03
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=
@nathanchrs
nathanchrs / set-proxy
Created February 23, 2017 12:52
Bash script to set proxy on Linux
#!/usr/bin/env bash
# Sets proxy settings.
# Run using `source` command. apt-get proxy settings requires sudo privileges.
# By nathanchrs.
# Configuration
# PROXY_HOST=""
# PROXY_USER=""
# PROXY_PASSWORD=""