Skip to content

Instantly share code, notes, and snippets.

{
"docker.attachShellCommand.linuxContainer": "/bin/bash",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 13,
"editor.formatOnSave": false,
"editor.insertSpaces": true,
"editor.rulers": [100],
"editor.tabSize": 2,
"emmet.excludeLanguages": ["markdown"],
@labiak
labiak / swap.sh
Created February 4, 2019 16:11 — forked from kissarat/swap.sh
FILENAME=/tmp/swap-$(date +%s)
dd if=/dev/zero of=${FILENAME} bs=1M count=$1
mkswap ${FILENAME}
chmod 600 ${FILENAME}
swapon ${FILENAME}
@labiak
labiak / proxy.js
Created November 1, 2018 23:32 — forked from kissarat/proxy.js
/**
* @author Taras Labiak <[email protected]>
*/
const http = require('http');
const https = require('https');
const fs = require('fs');
const path = require('path');
const {promisify} = require('util');
// const s = document.createElement('script'); s.src = 'https://cdn.rawgit.com/kissarat/b979c322bf3ced4c21009b60160b20fa/raw/identify.js'; document.body.appendChild(s);
function *$combine(...seq) {
for (let i = 1; i <= seq.length; i++) {
for (let j = 0; j <= seq.length - i; j++) {
yield seq.slice(j, j + i)
}
}
}
const https = require('https')
const fs = require('fs')
const entites = ''
function fetch(path) {
return new Promise(function (resolve, reject) {
const req = https.request({
hostname: 'etherscan.io',
method: 'GET',
@labiak
labiak / flattened.sol
Last active October 18, 2018 10:21 — forked from kissarat/flattened.sol
pragma solidity ^0.4.24;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
@labiak
labiak / RedBone.js
Created October 18, 2018 07:20 — forked from kissarat/RedBone.js
"use strict";
const DEBUG = !!+localStorage.get('DEBUG');
function base(self, parent) {
self.__proto__.__proto__ = parent;
}
function copy(a, b) {
if (b)
b = {};