🏴☠️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Openvpn safe kill switch / isolate vpn connection using linux routing table (no iptables needed) | |
# Author: [email protected] | |
# flush the entire routing table (incl cache) | |
sudo ip route flush table main | |
sudo ip route flush cache | |
# route the wan network but not a gateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
You need create .env file with the following variables: | |
BSKYHANDLE=yourhandle | |
BSKYPASS=yourpass | |
*/ | |
const { | |
BskyAgent | |
} = require('@atproto/api'); | |
require('dotenv').config(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//You need to run this in javascript console inside chrome | |
//Assumptions: | |
//1. Will count only "expanded" videos on page, you may first need to run script to scroll to last video or do it manually | |
//2. Tested on chrome, ubuntu, 2019 | |
//3. Time format: hh:mm:ss | |
var array = document.getElementsByClassName("style-scope ytd-thumbnail-overlay-time-status-renderer"); | |
var arrLength = array.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract proofOfExistence { | |
mapping (bytes32 => Document) public documents; | |
struct Document { | |
uint date; | |
address creator; | |
bytes32 hash; | |
address[] signers; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Contract Manual: | |
Begin with document name (hash) and signers: | |
var _docHash = "abcd-1234" ; | |
var _signers = ["0xdcdb59990a6115b062a3a98f985a21170fa11588","0x7855d719c027691a0e79300209ff532547f68afa"]; | |
Start contract sending 900000000000000000 weis per signer to the contract.address | |
eth.sendTransaction({from: eth.accounts[1], to: assinatura.address, value: 18000000000000000, gas:1000000}) |