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
--- old/cmake/Modules/GetVersionInfo.cmake 2015-11-25 14:12:22.000000000 -0500 | |
+++ new/cmake/Modules/GetVersionInfo.cmake 2015-12-07 17:48:36.550139947 -0500 | |
@@ -22,12 +22,6 @@ | |
STRING(REPLACE "-" "_" LCB_VERSION "${LCB_VERSION}") | |
MESSAGE(STATUS "Sanitized VERSION=${LCB_VERSION}") | |
RUNGIT(LCB_VERSION_CHANGESET rev-parse HEAD) | |
- | |
- EXECUTE_PROCESS( | |
- COMMAND echo ${LCB_VERSION} | |
- COMMAND awk -F. "{printf \"0x%0.2d%0.2d%0.2d\", $1, $2, $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
subscribers = aweber_list.subscribers.find(status='subscribed') | |
for i in range(0, subscribers.total_size): | |
try: | |
print(subscribers[i].id) | |
except aweber_api.base.APIException: | |
if str(e).startswith('ForbiddenError: Rate limit exceeded'): | |
# Wait 60 seconds |
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 argparse | |
import os | |
import requests | |
MAX_RFC = 8056 | |
def download_rfc(rfc_num, output_dir): | |
print(f'Downloading {rfc_num}') |
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
nginx: | |
image: nginx | |
restart: always | |
links: | |
- nextcloud | |
- transmission | |
- airsonic | |
- emby | |
volumes: | |
- /home/docker/nginx.conf:/etc/nginx/nginx.conf |
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 | |
python_version=$1 | |
packages=`pip$python_version list --outdated --format=freeze` | |
if [[ ! -z $packages ]]; then | |
echo $packages | grep -v '^\-e' | cut -d = -f 1 | xargs pip$python_version install --upgrade | |
else | |
echo All Python $python_version packages up-to-date. | |
fi |
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 | |
dpi=$(xdpyinfo | grep resolution | awk '{print $2}') | |
if [[ $dpi == '192x192' ]]; then | |
factor=2 | |
else | |
factor=1 | |
fi | |
/usr/bin/electron --force-device-scale-factor=$factor "$@" |
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
version: '3.5' | |
services: | |
nginx: | |
image: nginx:mainline-alpine | |
volumes: | |
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro | |
- ./certs/live/sol.nullsum.net/privkey.pem:/ssl/privkey.pem:ro | |
- ./certs/live/sol.nullsum.net/fullchain.pem:/ssl/fullchain.pem:ro | |
- ./certs/dhparam.pem:/ssl/dhparam.pem:ro |
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 collections | |
import pathlib | |
import struct | |
import argparse | |
LEVELS = { | |
'E1M1': 'level3', | |
'E1M2': 'level4', | |
'E1M3': 'level5', |
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 sh | |
decode_audio() { | |
openssl base64 -d << EOF | |
T2dnUwACAAAAAAAAAACszaAOAAAAAAUPz3gBE09wdXNIZWFkAQE4AUSsAAAAAABPZ2dTAAAAAAAA | |
AAAAAKzNoA4BAAAAqDEz8wP///5PcHVzVGFncx0AAABsaWJvcHVzIDEuMywgbGlib3B1c2VuYyAw | |
LjIuMQIAAAAjAAAARU5DT0RFUj1vcHVzZW5jIGZyb20gb3B1cy10b29scyAwLjI6AAAARU5DT0RF | |
Ul9PUFRJT05TPS0tZnJhbWVzaXplIDYwIC0tYml0cmF0ZSAxNiAtLWRvd25taXgtbW9ubwAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
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 argparse | |
import concurrent.futures | |
import json | |
import logging | |
import subprocess | |
LOGGER = logging.getLogger('docker-healthchecker') | |
OlderNewer