This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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}" |
NewerOlder