TL;DR
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sql
Install Postgres 11, and then:
TL;DR
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sql
Install Postgres 11, and then:
; Based on https://superuser.com/a/768060/542406 | |
!`:: ; Next window | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName% | |
IF WinClassCount = 1 | |
Return | |
Else | |
WinSet, Bottom,, A | |
WinActivate, ahk_exe %ActiveProcessName% | |
return |
#!/usr/bin/env ruby | |
# Sizes - Calculate and sort all filesizes for current folder Includes | |
# directory sizes, colorized output Brett Terpstra 2019 WTF License | |
VERSION = "1.0.1" | |
require 'shellwords' | |
# Just including term-ansicolor by @flori and avoiding all the | |
# rigamarole of requiring multiple files when it's not a gem... - Brett | |
# |
curl -0 -v -X POST http://wemo:49153/upnp/control/basicevent1 -H 'SOAPACTION: "urn:Belkin:service:basicevent:1#GetBinaryState"' -H 'Content-Type: text/xml; charset=utf-8' -d @- << EOF | |
<?xml version="1.0" encoding="utf-8"?> | |
<s:Envelope | |
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" | |
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<s:Body> | |
<u:GetBinaryState xmlns:u="urn:Belkin:service:basicevent:1" /> | |
</s:Body> | |
</s:Envelope> | |
EOF |
#!/usr/bin/python | |
# Removes non-LANG audio tracks and subtitles from mkv files in a directory. | |
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container | |
# Modified by Joseph Milazzo for updated MkvMerge commands. | |
# 12/3/2021: Updated to Python 3.9 | |
import os | |
import re | |
import sys |
#!/bin/sh | |
# | |
# INFO | |
# | |
# This works if sonarr and radarr are set up to have a Category of sonarr and radarr respectively | |
# If you are using other Categories to save your automated downloads, update the script where you see: | |
# "radarr"|"sonarr") | |
# This script will not touch anything outside those Categories |
#config regex on | |
#event {SESSION DISCONNECTED} {#end} | |
#highlight {{^([^$#(]+)(\$|#|\([^)]+\)#)}} {bold white} | |
#highlight {{(?:[\W\s]|^)([0-9a-f]{4}\.){2}[0-9a-f]{4}(?=[\W\s]|$)}} {bold light jade} | |
#highlight {{(?:[\W\s]|^)((::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)(\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)(\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)((\d{1,10}:){2}(?:(?:25[0-5]|2[0-4] |
For security, since this script injects CSS via AJAX, first fork the main slack night mode repo. The reason is explained here
UPDATE: The code has been modified to download the remote css to a local file and use ruby sass compiler to verify there is no malicious code in the remote css. This will error if the code has been modified to include anything malicious (i.e. script or img tags etc.) It's also been refactored to use the local file inside the js injection, it makes sure it's safe first in the very unlikely event the local file somehow differs from the remote css. The chances of this happening are remote, but this should suffice for safety.
~/lacostenycoder/scripts/ruby/
remote_repo
variable in ruby script to use YOUR repo. The rawgit.com file is crea#----------------------------------------------------------------------- | |
# same-quad-list.txt: a list of same-quad IPs by owner w/DNS status | |
# | |
# The CIDR network is the largest contiguous/bit-boundary-aligned block | |
# that is allocated to that entity (actual allocated range may be larger) | |
# NOTE: some ranges not yet converted to CIDR. | |
# Updates welcome - leave comment and/or ping royce@techsolvency.com | |
#----------------------------------------------------------------------- | |
# For human efficiency, some records are repeated here as comments. | |
# |
Moved to https://github.com/bmaddy/csd-vpn/blob/master/csd-responder-exec.sh |