A Pen by Robin Selmer on CodePen.
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 | |
# Reset Transmit 5 Trial | |
# curl -fsSL https://gist.githubusercontent.com/thoaster/ca5b4fdb653b9cdb3930897045b78558/raw/reset.sh | bash | |
set +e | |
set -x | |
sudo rm -rf ~/Library/Caches/com.panic.Transmit | |
sudo rm -rf ~/Library/Application\ Support/com.panic.Transmit | |
sudo rm ~/Library/Preferences/com.panic.Transmit.plist |
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 | |
# Install required tools | |
apt install -y curl sudo gnupg2 | |
# Create repository entry | |
sudo tee /etc/apt/sources.list.d/pritunl.list << EOF | |
deb https://repo.pritunl.com/stable/apt bullseye main | |
EOF |
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 sys | |
import socket | |
from timeit import Timer | |
import asyncssh | |
import asyncio | |
import paramiko |
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
from flask import Flask | |
from werkzeug.routing import BaseConverter | |
app = Flask(__name__) | |
class FooConverter(BaseConverter): | |
regex = '[^/].*?' | |
weight = 200 | |
def to_python(self, value): |
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
A warning occurred (42 apples) | |
An error occurred |
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
from celery.task.schedules import crontab | |
from celery.decorators import periodic_task | |
@periodic_task(run_every=crontab(hour=7, minute=30, day_of_week="mon")) | |
def every_monday_morning(): | |
print("This runs every Monday morning at 7:30a.m.") |
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
# Login | |
ssh root@pfsense | |
# Install tools | |
pkg install -y bash git | |
cd /usr/local | |
/usr/local/bin/git clone https://github.com/lukas2511/dehydrated.git | |
# Configure dehydrated/letsencrypt.sh |
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
I update my issue I found in Mac Os El Capitan. A solution taken from the suggestion of others. | |
Underlining issue is that OSX has older 0.9.x version of openssl. Installing uwsgi attempts to build against older libary. | |
find / -name "libssl.*.dylib" 2>/dev/null | |
/usr/lib/libssl.0.9.7.dylib | |
/usr/lib/libssl.0.9.8.dylib | |
/usr/local/Cellar/openssl/1.0.2d/lib/libssl.1.0.0.dylib <--- Installed by homebrew | |
/usr/local/lib/libssl.1.0.0.dylib | |
Then I built uwsgi as follows: |
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
# File in: /etc/lighttpd/conf-available/99-sites-enabled.conf | |
include_shell "/usr/share/lighttpd/include-sites-enabled.pl" |
NewerOlder