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 time | |
def main(): | |
SLEEP_DELAY = 10 | |
for i in xrange(100): | |
print("Hello world! The time is now: %s. Sleeping for %d secs" % ( | |
time.asctime(), SLEEP_DELAY)) | |
time.sleep(SLEEP_DELAY) | |
if __name__ == "__main__": |
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
$ coredumpctl gdb 7884 | |
PID: 7884 (q-desktop) | |
UID: 1000 (chase) | |
GID: 985 (users) | |
Signal: 5 (TRAP) | |
Timestamp: Wed 2018-07-04 10:58:14 CEST (1min 39s ago) | |
Command Line: /usr/bin/q-desktop | |
Executable: /usr/bin/q-desktop | |
Control Group: /user.slice/user-1000.slice/session-c1.scope | |
Unit: session-c1.scope |
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 | |
. "${0%/*}/../common.sh" | |
declare -A default | |
while IFS== read key value; do | |
default["$key"]="$value" | |
done < /etc/hardening-wrapper.conf | |
force_fPIE="${HARDENING_PIE:-"${default[HARDENING_PIE]:-1}"}" |
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
abs | |
adobe-source-han-sans-cn-fonts | |
aic94xx-firmware | |
alsa-utils | |
anamnesis | |
android-tools | |
ansible | |
arch-install-scripts | |
archon | |
archon-exec |
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/perl -w | |
# recover rsyslog disk queue index (.qi) from queue files (.nnnnnnnn). | |
# | |
# See: | |
# runtime/queue.c: qqueuePersist() | |
# runtime/queue.c: qqueueTryLoadPersistedInfo() | |
# | |
# [email protected] 2012-03-14 | |
# | |
use strict; |
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 socket | |
import time | |
import datetime | |
def is_connected(remote_server): | |
try: | |
host = socket.gethostbyname(remote_server) | |
socket.create_connection((host, 80), 2) | |
return True |
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
resource "gsuite_group" "test" { | |
email = "test${count.index}@sillevis.net" | |
name = "test${count.index}@sillevis.net" | |
description = "Test ${count.index}" | |
count = 1000 | |
} |
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
func scanIdentifier(s string) (string, int) { | |
byteLen := 0 | |
runeLen := 0 | |
for { | |
if byteLen >= len(s) { | |
break | |
} | |
nextRune, size := utf8.DecodeRuneInString(s[byteLen:]) | |
if (!(nextRune == '_' || |
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
{ | |
"data": { | |
"terraform_remote_state": { | |
"networking-int": { | |
"backend": "gcs", | |
"config": { | |
"bucket": "networking-int", | |
"path": "terraform.tfstate", | |
"region": "us-east1", | |
"project": "networking-int" |
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 python3 | |
import requests | |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
urls = [] |
NewerOlder