Skip to content

Instantly share code, notes, and snippets.

@some-say
some-say / config.json
Created January 27, 2016 21:45 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@some-say
some-say / webgl-detection-bypass.js
Created November 23, 2021 20:00 — forked from nicoandmee/webgl-detection-bypass.js
[canvas-webgl-puppeteer-spoof]
() => {
function hookPrototypeMethods(prefix, object) {
// TODO: also hook getters
if (!object) return;
const originals = {};
const prototype = Object.getPrototypeOf(object);
Object
.getOwnPropertyNames(prototype)
.filter((n) => {
try {
// Task no. 1:
// use array.reduce to change a two-dimensional array to a key-value object (keys must not be overwritten)
const array = [
['name', 'MORWBYTfaG'],
['name', 'F05hDUA88t'],
['name', 'YYgmrag4VT'],
['name', 'iMIqSv8sWR'],
['name', 'sh1N28ncvu'],
@some-say
some-say / 3proxy.cfg
Created November 30, 2022 10:02 — forked from prescience-data/3proxy.cfg
Demo config for 3proxy
#!/usr/local/bin/3proxy
system "echo 3proxy up!"
# you may use system to execute some external command if proxy starts
nserver 9.9.9.9
nserver 149.112.112.112
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
@some-say
some-say / ios-addressbook.sql
Created January 20, 2023 00:44 — forked from laacz/ios-addressbook.sql
SQL query to extract essential info from addressbook in iOS backup
--
-- This is SQL query to extract AddressBook info from respective sqlite3 file from iOS backup.
-- It has been tested only on my own backup, so, if anything is wrong, fork, edit, and stuff.
--
-- # parse-manifest.py from http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup
--
-- $ python ../parse-manifest.py | grep AddressBook.sqlitedb
-- -rw-r--r-- 000001f5 000001f5 1654784 1312812502 1312812502 1287387943 (31bb7ba8914766d4ba40d6dfb6113c8b614be442)HomeDomain::Library/AddressBook/AddressBook.sqlitedb
--
-- $ sqlite3 31bb7ba8914766d4ba40d6dfb6113c8b614be442
@some-say
some-say / got.js
Created March 1, 2023 00:18 — forked from paambaati/got.js
Got with HTTP2 support (ALPN negotiation) + Connect settings overrides
const {extend: gotExtend} = require('got');
const http2 = require('http2-wrapper');
const resolveALPN = require('resolve-alpn');
// Taken from https://github.com/nodejs/node/blob/d4c91f28148af8a6c1a95392e5c88cb93d4b61c6/lib/_http_agent.js
//
// throws
// tls.connect({host: 'httpbin.org', port: 443});
//
// doesn't throw
@some-say
some-say / README.md
Created March 28, 2023 23:31 — forked from dwtkns/README.md
Faux-3D Arcs

Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.

@some-say
some-say / README.md
Created March 28, 2023 23:31 — forked from patricksurry/README.md
Flying arcs with height proportional to length

Adapted from this, to avoid the second projection and make flying arc height proportional to length.

Because the 'sky' projection is just a scaled up version of the original one, the projection of a sky point in canvas coords can be easily calculated by scaling the ground projection point along the vector from the origin.

Another improvement(?) might be to avoid the swoosh/interpolate function by doing this same trick directly on the stream of points that comes from the normal projection path function.

@some-say
some-say / _deobfuscating-unminifying-obfuscated-web-app-code.md
Created September 30, 2024 15:16 — forked from 0xdevalias/_deobfuscating-unminifying-obfuscated-web-app-code.md
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code