Skip to content

Instantly share code, notes, and snippets.

View angristan's full-sized avatar
:shipit:
o(≧▽≦)o

Stanislas angristan

:shipit:
o(≧▽≦)o
View GitHub Profile
anonymous
anonymous / nightly
Created December 24, 2016 18:53
cm_builds
https://download.cyanogenmod.org/get/tf201-latest.zip
https://download.cyanogenmod.org/get/tf700t-latest.zip
https://download.cyanogenmod.org/get/tf300t-latest.zip
https://download.cyanogenmod.org/get/tf701t-latest.zip
https://download.cyanogenmod.org/get/Z00A-latest.zip
https://download.cyanogenmod.org/get/Z008-latest.zip
https://download.cyanogenmod.org/get/Z00L-latest.zip
https://download.cyanogenmod.org/get/Z00T-latest.zip
https://download.cyanogenmod.org/get/P024-latest.zip
https://download.cyanogenmod.org/get/encore-latest.zip
@aeris
aeris / privacy.sieve
Last active March 6, 2017 19:49
Sieve filter for privacy
# Licence : AGPLv3+
# rule:[Privacy]
if anyof (
address :is :domain "From" "gmail.com",
address :is :domain "From" "live.com",
address :is :domain "From" "msn.com",
address :is :domain "From" "hotmail.com",
address :is :domain "From" "hotmail.fr",
address :is :domain "From" "yahoo.com",
address :is :domain "From" "yahoo.fr"
@nusenu
nusenu / potential_seizure_candidates.txt
Last active June 12, 2017 17:12
OVH and Online SAS (FR) based guard-only relays that disappeared between 2017-05-12 and 2017-05-18
Reach me at https://twitter.com/nusenu_ (or via email)
if you have more details.
+---------------------+----------+-----------------+---------------------+--------------------------------+
| last_seen | FP | IP | nickname | contact | comments
+---------------------+----------+-----------------+---------------------+--------------------------------+
| 2017-05-14 22:00:00 | 9E339307 | 37.187.18.109 | 1001001de2 | Admin 0671 D82 F F0 E1 9 3AA |
| 2017-05-18 23:00:00 | 0C2E5558 | 51.255.211.2 | AmnesicProsecutor | NULL |
| 2017-05-15 15:00:00 | 0639612F | 92.222.20.130 | Baki | tor0517@kiito.xyz | seized (confirmed by operator)
| 2017-05-12 17:00:00 | F0A13CA9 | 163.172.185.161 | caf4f922534cea81d13 | NULL |
@bortzmeyer
bortzmeyer / bgproute.md
Created June 20, 2017 11:47
Get the AS (IPv4 only) froma DNS request
bgproute () {
	if [ -z "$1" ]
	then
		echo "Usage: bgproute IP-address"
		return 1
	fi
	dig +short TXT `echo $1 |                awk -F. '{print $4 "." $3 "." $2 "." $1 ".aspath.routeviews.org" }'` | awk -F\" '{print "AS path: " $2 "\nRoute: " $4 "/" $6}'
}
@yannvery
yannvery / How_to_maintain_fork_sync.md
Created January 20, 2016 09:52
How to maintain fork sync

How to maintain fork sync

Configuring a remote for a fork

To sync changes you make in a fork with the original repository, you must configure a remote that points to the upstream repository in Git.

  • Open a Terminal
  • List current configured remote repository for your fork
git remote -v
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
@dansup
dansup / deploy.sh
Last active July 29, 2019 20:08
Pixelfed development deployment script
cd /home/forge/pixelfed.social
git pull origin dev
composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
echo "" | sudo -S service php7.2-fpm reload
php artisan config:cache
php artisan migrate --force
php artisan horizon:purge
php artisan horizon:terminate
@tribela
tribela / empty_account.rb
Last active February 10, 2020 08:35
Find empty account from mastodon
# frozen_string_literal: true
Account
.local.without_suspended
.where('accounts.created_at < ?', 30.days.ago)
.where(note: '')
.where(display_name: '')
.where(avatar_file_name: nil)
.where(
Account.arel_table[:fields].eq(nil).or(
Account.arel_table[:fields].eq([])
@dimaryaz
dimaryaz / dropbox_ext4.c
Created August 15, 2018 07:28
Dropbox ext4 hack
/*
* dropbox_ext4.c
*
* Compile like this:
* gcc -shared -fPIC -ldl -o libdropbox_ext4.so dropbox_ext4.c
*
* Run Dropbox like this:
* LD_PRELOAD=./libdropbox_ext4.so ~/.dropbox-dist/dropboxd
*/
@jcsrb
jcsrb / command.sh
Last active June 21, 2020 19:56
if you get "socket() failed (24: Too many open files) while connecting to upstream" on nginx on MacOS
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf
echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 4096' | sudo tee -a /etc/profile
sys.path.insert(0, 'lib/')
extensions += ['sphinxcontrib_phpautodoc']