This method is safer but requires more expertise.
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
gpg --gen-key --batch <<EOF | |
Key-Type: RSA | |
Key-Length: 4096 | |
Subkey-Type: RSA | |
Subkey-Length: 4096 | |
Name-Real: <ton_nom> | |
Name-Email: <ton_mail> | |
Expire-Date: 0 | |
Passphrase: <ta_passphrase> | |
%pubring foo${1}.pub |
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
[Unit] | |
Description=Leafnode NNTP Socket | |
[Socket] | |
ListenStream=127.0.0.1:119 | |
Accept=true | |
[Install] | |
WantedBy=sockets.target |
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
var net = require('net'); | |
var END = '\r\n'; | |
var groups = ['nodejs.test']; | |
var articles = { | |
'<[email protected]>' : {body : 'An article.'}, | |
'<[email protected]>' : {body : 'Another article.'}, | |
}; |
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
if _BASHRC_WAS_RUN 2>/dev/null; then | |
:; | |
else # Stuff that only needs to run the first time we source .bashrc. | |
# Useful to allow re-sourcing new changes, without breaking/changing things in this section | |
alias _BASHRC_WAS_RUN=true | |
# ... continued ... | |
fi | |
# Last mod time of a file or files | |
get_file_timestamp () { |
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
# # emacs keybindings for navigation in copy mode | |
# markkeys ^B=Y:^F=V:h=^B:l=^F:0=^A:$=^E | |
# # C-space sets mark. markkeys does it in screen 4.0 and higher, but 3.9x | |
# # needs the bindkey command. (note the ^@ escape sequence for C-space.) | |
# markkeys ' '=^@ | |
# # bindkey -m ^@ stuff ' ' | |
# # page up and page down | |
# bindkey -m -k kP stuff Y |
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
on init | |
chmod 666 /dev/diag | |
on post-fs-data | |
# Modem logging collection | |
mkdir /data/vendor/radio 0777 radio radio | |
mkdir /data/vendor/radio/diag_logs 0777 system system | |
# WLAN logging collection | |
mkdir /data/vendor/wifi 0777 system system | |
mkdir /data/vendor/wifi/cnss_diag 0777 system system |
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
/* | |
* DOMParser HTML extension | |
* 2019-11-13 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ | |
/*! @source https://gist.github.com/1129031 */ |
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
{ | |
"ok": true, | |
"emoji": { | |
"bowtie": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/bowtie\/f3ec6f2bb0.png", | |
"squirrel": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/squirrel\/465f40c0e0.png", | |
"glitch_crab": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/glitch_crab\/db049f1f9c.png", | |
"piggy": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/piggy\/b7762ee8cd.png", | |
"cubimal_chick": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/cubimal_chick\/85961c43d7.png", | |
"dusty_stick": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/dusty_stick\/6177a62312.png", | |
"slack": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/slack\/5ee0c9bea3.png", |
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
import boto3 | |
import botocore | |
from time import sleep | |
import requests | |
import ipaddress | |
interesting_address = [ | |
'3.0.0.3', | |
'3.0.0.1', |
NewerOlder