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 logging | |
LOG = logging.getLogger('A') | |
ch = logging.StreamHandler() | |
formatter = logging.Formatter('%(asctime)s %(levelname)s %(name)s: %(message)s') | |
ch.setFormatter(formatter) | |
LOG.addHandler(ch) | |
LOG.setLevel("DEBUG") | |
from functions import common_functions |
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 sys | |
import time | |
import struct | |
import argparse | |
import uuid | |
import threading | |
import Queue |
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 | |
set -e | |
set -u | |
DEFAULT_UID=33 | |
DEFAULT_GID=33 | |
usage(){ | |
printf "Usage: ./%s -u NEW_UID [-f Force, needed if NEW_UID = 0 ]\n" "$0" | |
} |
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
#cloud-config | |
hostname: "node1" | |
coreos: | |
update: | |
reboot-strategy: "best-effort" | |
group: "alpha" | |
units: | |
- name: settimezone.service | |
command: start |
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
# Just add this to "My filters" in uBlocks settings | |
www.brain.fm###bg_bubbles_container |
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
@echo off | |
rem Set CMDER_ROOT to your actual cmder installation directory | |
set CMDER_ROOT=%~dp0 | |
start %CMDER_ROOT%\vendor\conemu-maximus5\ConEmu.exe /icon "%CMDER_ROOT%\cmder.exe" /title Cmder /loadcfgfile "%CMDER_ROOT%\config\ConEmu.xml" /cmd cmd /k "%CMDER_ROOT%\vendor\init.bat cd %CD% && %~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
#!/bin/bash | |
set -euo pipefail | |
#set -x | |
change_mac(){ | |
OLDMAC=$(ip link show wlan0 |grep -oP '([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})'|head -1) | |
ifconfig ${1} down | |
set +e | |
while true | |
do |
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 | |
set -ueo pipefail | |
# set -x | |
BORG_ARCH=${BORG_ARCH:-linux64} | |
BORG_PATH=${BORG_PATH:-} | |
BORG_UPDATE_ONLY=${BORG_UPDATE_ONLY:-0} | |
if [ -z "${BORG_PATH}" ] | |
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
import json | |
import argparse | |
from time import sleep | |
def parse_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('input_file', metavar='INPUT') | |
parser.add_argument('output_file', metavar='OUTPUT') |
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 | |
############################# | |
# Author: Till Wiese/m3adow # | |
############################# | |
set -euo pipefail | |
set -x | |
OlderNewer