Skip to content

Instantly share code, notes, and snippets.

@RafalFilipek
RafalFilipek / list
Created August 18, 2015 13:14
Facebook modules
facebook.com => console => Obect.keys(require.__debug.modules).join('\n')
module
exports
define
global
require
requireDynamic
requireLazy
requireWeak
@sairion
sairion / fbmodules.js
Created August 24, 2015 17:28
Facebook Modules of 2015-08-25
var a= '';
for (var i in require.__debug.modules) {
a += (i + '\n');
}
console.log(a);
/*
module
exports
define
@tzmartin
tzmartin / ipsw.decrypt.md
Created January 12, 2016 17:55
Decrypting ipsw firmware files
@streetgt
streetgt / youtube_comment_bot.py
Last active January 15, 2022 13:04
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@subfuzion
subfuzion / curl.md
Last active April 23, 2025 20:29
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@codeanticode
codeanticode / Artificial.pde
Last active August 27, 2019 06:34
ported shadertoy shader https://www.shadertoy.com/view/4ljGW1 to Processing
PShader artificial;
void setup() {
size(640, 360, P3D);
noStroke();
artificial = loadShader("artificial.glsl");
artificial.set("iResolution", float(width), float(height), 0.0);
}
@chenjianjx
chenjianjx / start-celery-for-dev.py
Created March 10, 2016 10:45
A python script which starts celery worker and auto reload it when any code change happens.
'''
A python script which starts celery worker and auto reload it when any code change happens.
I did this because Celery worker's "--autoreload" option seems not working for a lot of people.
'''
import time
from watchdog.observers import Observer ##pip install watchdog
from watchdog.events import PatternMatchingEventHandler
import psutil ##pip install psutil
import os
// ==UserScript==
// @name Download YouTube Videos as MP4
// @description Adds a button that lets you download YouTube videos.
// @homepageURL https://github.com/gantt/downloadyoutube
// @author Gantt
// @version 1.8.7
// @date 2016-03-19
// @namespace http://googlesystem.blogspot.com
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
@JonCole
JonCole / WhatHappenedToMyDataInRedis.md
Last active October 28, 2019 19:43
What happened to my data in Redis?
@alexkirsz
alexkirsz / sixth-sense.js
Created May 23, 2016 18:56
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()