Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains 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
// http://www.ietf.org/rfc/rfc1928.txt | |
// Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar | |
var States = { | |
CONNECTED:0, | |
VERIFYING:1, | |
READY:2, | |
PROXY: 3 | |
}; |
This file contains 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/sh | |
git ls-tree -r $1 | grep $2 | awk '{print $3}' | xargs git cat-file blob |
This file contains 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
function u2d () { | |
if [[ $# > 0 ]]; then | |
date -u -Iseconds -d @$1 | |
else | |
date -u -Iseconds | |
fi | |
} | |
function d2u () { | |
if [[ $# > 0 ]]; then |
This file contains 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 | |
if [ `id -u` -ne 0 ]; then | |
echo "Rippling uninstall must be run by root" | |
exit 1 | |
fi | |
sudo launchctl unload /Library/LaunchDaemons/com.rippling.* | |
sudo rm -rf /Library/LaunchDaemons/com.rippling.* | |
sudo rm -rf /opt/rippling |
This is the second article in a series of articles around Rusts new async/await
feature. The first article about interfaces can be found
here.
In this part of the series we want to a look at a mechanism which behaves very
different in Rust than in all other languages which feature async/await
support. This mechanism is Cancellation.
In this tutorial we will detail how to connect two linux hosts via 56k modems. To do this we will use the following components:
- Two Raspberry Pi's 4 ($35-$55 / each)
- Two Conexant 56k Modems ( https://www.amazon.com/gp/product/B008RZTJC0/ | $17-$20 / each)
- a RJ-11 splitter( https://www.amazon.com/Splitter-Duplex-line-Telephone-Adapter/dp/B07WNDZT6Y | $8-$12)
- A Linksys SPA-2102 ( search ebay for
linksys SPA-2102
on ebay | $18-$25 ) - Two RJ-11 cables ( should come with the modems )
This file contains 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
<Sysmon schemaversion="4.90"> | |
<HashAlgorithms>md5,sha256</HashAlgorithms> | |
<DnsLookup>False</DnsLookup> | |
<CheckRevocation>False</CheckRevocation> | |
<ArchiveDirectory>sysmon</ArchiveDirectory> | |
<EventFiltering> | |
<!--Event ID 1: Process creation--> | |
<ProcessCreate onmatch="exclude"></ProcessCreate> | |
<!--Event ID 2: A process changed a file creation time--> | |
<FileCreateTime onmatch="exclude"></FileCreateTime> |