Skip to content

Instantly share code, notes, and snippets.

View brilon's full-sized avatar
🍊
Focusing

Ethan brilon

🍊
Focusing
View GitHub Profile
@jacopo-j
jacopo-j / frida-spoof.js
Last active July 8, 2025 10:07
Frida script to spoof and hide several Android identifiers
/* Utilities */
var RANDOM = function() {};
function _randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function _randomHex(len) {
var hex = '0123456789abcdef';
@hermanbanken
hermanbanken / Dockerfile
Last active September 1, 2025 21:47
Compiling NGINX module as dynamic module for use in docker
FROM nginx:alpine AS builder
# nginx:alpine contains NGINX_VERSION environment variable, like so:
# ENV NGINX_VERSION 1.15.0
# Our NCHAN version
ENV NCHAN_VERSION 1.1.15
# Download sources
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \
@keepitsimple
keepitsimple / async_tor_proxy_sample.py
Last active March 18, 2025 15:06
aiohttp + aiosocks: async tor proxy example
import asyncio
import aiohttp
import aiosocks
from aiosocks.connector import ProxyConnector, ProxyClientRequest
async def main():
async with aiohttp.ClientSession() as session:
async with session.get('http://icanhazip.com/') as resp:
@weleen
weleen / proxy.md
Last active March 8, 2024 05:58
linux use shadowsocksR + polipo to proxy globally

install shadowsocksR

  1. use the script ssr, and get free ssr server or create a server by youself.
  2. follow the annotation in script, set the server configuration.
ssr config

install polipo

  1. install polipo.
@estorgio
estorgio / Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md
Last active September 27, 2025 02:50
Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

Update 28 July 2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Update 23 May 2020: This guide is ALREADY OUTDATED and might no longer work with new versions of Ubuntu and VirtualBox. Please consider switching to the updated guide instead. I will no longer respond to the replies to this gist. Thank you.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

@itbdw
itbdw / ip_whitelist.lua
Last active February 25, 2025 09:27 — forked from Ceelog/cloudSettings
Nginx Lua IP Whitelist Rule
-- a quick LUA access script for nginx to check IP addresses match an
-- `ip_whitelist` set in Redis, and if no match is found send a HTTP
-- 403 response or just a custom json instead.
--
-- allows for a common whitelist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time.
--
-- white an ip:
-- redis-cli SADD ip_whitelist 10.1.1.1
@ahmadawais
ahmadawais / upload-a-file.MD
Created June 18, 2017 11:07 — forked from websupporter/upload-a-file.MD
Upload a file using the WordPress REST API

Upload files

Using the REST API to upload a file to WordPress is quite simple. All you need is to send the file in a POST-Request to the wp/v2/media route.

There are two ways of sending a file. The first method simply sends the file in the body of the request. The following PHP script shows the basic principle:

{"lastUpload":"2020-04-30T04:17:22.471Z","extensionVersion":"v3.4.3"}
@v5tech
v5tech / CrawlZCFG.java
Created January 21, 2015 09:53
webmagic爬虫示例
import java.util.ArrayList;
import java.util.List;
import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.Spider;
import us.codecraft.webmagic.processor.PageProcessor;
/**
* 爬取http://www.tianyisw.com/ 政策法规数据
@outadoc
outadoc / pushover
Last active October 24, 2024 12:31
Pushover Bash Script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: ./pushover <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2