Skip to content

Instantly share code, notes, and snippets.

View simulanics's full-sized avatar

Matthew Combatti simulanics

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
FileName, SHA1
sshsession.exe,27b5c1f766f7fd8db9450464297655784c09897d
sshsession.exe,8a86daa4d717ea78fedd7fb577b807222e74e01e
sshsession.exe,4fe568ce6bd281e9322fc35aaea870c144b401fd
sshsession.exe,ad4c83a0fd4e3d2abf9cd39afda499dfbdae5d3e
sshsession.exe,27b7d5b86efae0ac345a92d6911b0866f073b795
sshsession.exe,dc5abad427b04d42f62bbf81bfd89dfd49cbbbb0
sshsession.exe,42d48d75c16992d96e5e536b739974caa25d4631
sshsession.exe,d2e668ee7b97f8ad3d0d9c339791ec55a916ac90
sshsession.exe,d8d3682bf987b5fed5a2cefefcf6210695b3845d
@simulanics
simulanics / install-change-dns.sh
Created June 21, 2021 00:26 — forked from serianox/install-change-dns.sh
Very basic script for Android to set Google public DNS instead of mobile operator DNS
#!/bin/sh
# create a small script /sdcard/change-dns.sh that configures Google public DNS (requires to be run as root)
adb shell "echo \"#\0041/system/xbin/bash\" > /sdcard/change-dns.sh"
adb shell "echo \"su\" >> /sdcard/change-dns.sh"
adb shell "echo \"setprop net.dns1 8.8.8.8\" >> /sdcard/change-dns.sh"
adb shell "echo \"setprop net.dns2 8.8.4.4\" >> /sdcard/change-dns.sh"
adb shell "echo \"setprop net.rmnet0.dns1 8.8.8.8\" >> /sdcard/change-dns.sh"
adb shell "echo \"setprop net.rmnet0.dns2 8.8.4.4\" >> /sdcard/change-dns.sh"
pragma solidity ^0.4.16;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
@simulanics
simulanics / base58.js
Created February 27, 2021 01:20 — forked from bellbind/base58.js
[ECMAScript][BigInt] base58 encoder/decoder algorithm on JavaScript and base58check on node.js
// Bitcoin Base58 encoder/decoder algorithm
const btcTable = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
console.assert(btcTable.length === 58);
// Base58 decoder/encoder for BigInt
function b58ToBi(chars, table = btcTable) {
const carry = BigInt(table.length);
let total = 0n, base = 1n;
for (let i = chars.length - 1; i >= 0; i--) {
const n = table.indexOf(chars[i]);
@simulanics
simulanics / gdepth-extract.js
Created February 27, 2021 01:15 — forked from inflammable/gdepth-extract.js
GDepth:Data PNG Depth Map extractor
// A very crude tool to extract GDepth:Data chunks from the XMP data in images
// that use the Lens Blur feature in Google's Android Camera App
// Usage: node gdepth-extract.js <image name.jpg>
// Outputs <image name.png>
// Requires Buffer Tools for buffer.indexOf(): npm install buffertools
require('buffertools').extend();
var fs = require('fs'),
image = (process.argv)[2],
@simulanics
simulanics / base58.js
Created February 27, 2021 01:14 — forked from inflammable/base58.js
Base58 (and other) Encoding and Decoding in Javascript
/*
* base58.js
* - encodes integers to and decodes from a base58 (or your own) base58 alphabet
* - based on Flickr's url shortening
*
* usage:
* base58.encode(integer);
* base58.decode(string);
*
* (c) 2012 inflammable/raromachine

Keybase proof

I hereby claim:

  • I am simulanics on github.
  • I am mcombatti (https://keybase.io/mcombatti) on keybase.
  • I have a public key ASDrL6NbdhbJ8yDpnRtF4icAAZSmhixch6SjjTsytrUpkAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am simulanics on github.
  • I am combatti (https://keybase.io/combatti) on keybase.
  • I have a public key ASDxXEC_wOuNBojzMRM8QyRdN07ozLLCiLJxIEDUOC4EyQo

To claim this, I am signing this object: