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
#!/usr/bin/env python | |
import os | |
import sys | |
import requests | |
import argparse | |
import json | |
import time | |
pulp_user = 'admin' |
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
# checkout | |
git fetch origin refs/meta/config:refs/remotes/origin/meta/config | |
git checkout meta/config | |
#directly: | |
git push origin meta/config:meta/config | |
#via review: | |
git push origin meta/config:refs/for/refs/meta/config |
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
#!/usr/bin/python | |
import fcntl | |
import os | |
import struct | |
import array | |
import sys | |
BLKGETSIZE=0x1260 | |
BLKGETSIZE64=0x80081272 | |
BLKSSZGET=0x1268 |
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
domain (ip) { | |
table filter { | |
# | |
# Subchains: Portknocking | |
# ################################################################################ | |
chain PORT_KNOCKING_1 { | |
protocol tcp { | |
mod recent name "port_knock_seq_01" set NOP; | |
} |
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
''' | |
Demonstration of using `splice` with non-blocking IO | |
Lots of code is similar to 'splice.py', take a look at that module for more | |
documentation. | |
''' | |
import os | |
import os.path | |
import errno |
NewerOlder