Skip to content

Instantly share code, notes, and snippets.

View 0xRake's full-sized avatar
📍
How you do anything is how you do everything.

rake 0xRake

📍
How you do anything is how you do everything.
  • Zurich
View GitHub Profile
@0xRake
0xRake / phonon-faq.md
Last active September 26, 2022 16:07
Phonon Testnet FAQ & QSG

Phonon Testnet FAQ & QSG

Phonon TXN

Purchase Testnet/Dev Kit

Phonon Client

@0xRake
0xRake / fancy_defaults_read.py
Created December 24, 2020 20:56 — forked from gregneagle/fancy_defaults_read.py
fancy_defaults_read.py: Reads a preference, prints its value, type, and where it is defined.
#!/usr/bin/python
import os
import sys
from CoreFoundation import (CFPreferencesAppValueIsForced,
CFPreferencesCopyAppValue,
CFPreferencesCopyValue,
kCFPreferencesAnyUser,
kCFPreferencesAnyHost,
@0xRake
0xRake / ubuntu-basic-tools-server.sh
Created November 17, 2020 13:49
ubuntu server basic utilities
sudo apt -y autoremove && sudo apt update && sudo apt -y install apt-utils neovim vim nano git bash bash-completion zsh zsh-common zsh-doc whois dnsutils autoconf automake make dirmngr libtool p7zip-full git-extras ufw build-essential bison flex zip unzip xz-utils pv px bat openssl curl tmux python3-setuptools python3-pip python3-pkg-resources python3-pkginfo python3-pygments python3-lxml lsof inetutils openssh-server openssh-sftp-server && sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove && sudo apt -y autoclean
@0xRake
0xRake / disable.sh
Created June 16, 2020 05:50
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@0xRake
0xRake / update-adblock-dnsmasq.sh
Created June 4, 2020 07:37
/config/user-data
#!/bin/bash
ad_list_url=”http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext"#The IP address below should point to the IP of your router or to 0.0.0.0
pixelserv_ip=”0.0.0.0"
ad_file=”/etc/dnsmasq.d/dnsmasq.adlist.conf”
temp_ad_file=”/etc/dnsmasq.d/dnsmasq.adlist.conf.tmp”curl -s $ad_list_url | sed “s/127\.0\.0\.1/$pixelserv_ip/” > $temp_ad_fileif [ -f “$temp_ad_file” ]
then
sed -i -e ‘/googleadservices\.com/d’ $temp_ad_file
sed -i -e ‘/doubleclick\.net/d’ $temp_ad_file
sed -i -e ‘/awin1\.com/d’ $temp_ad_file
mv $temp_ad_file $ad_file