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
""" | |
Bare bones download/upload Python server using Flask. | |
""" | |
import os | |
from flask import ( | |
Flask, redirect, render_template_string, request, send_from_directory | |
) | |
from werkzeug.utils import secure_filename |
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/bash | |
echo "Termux SMS Backup" | |
echo "Copyright 2018 Patrick Gaskin" | |
hash termux-sms-list || | |
pkg install termux-api && | |
hash jq || | |
pkg install jq && | |
termux-setup-storage && | |
termux-sms-list -l 999999 -t all | | |
jq 'group_by(.threadid) | |
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
pkg upgrade | |
# Install runtime deps | |
pkg install python libzmq libcrypt | |
# Add build deps | |
pkg install python-dev libzmq-dev libcrypt-dev clang | |
pip3 install -U pip | |
pip3 install pyzmq --install-option="--zmq=/usr/lib" | |
pip3 install jupyter |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> | |
<key>CFBundleExecutable</key> | |
<string>libccid.dylib</string> | |
<key>CFBundleIdentifier</key> | |
<string>org.debian.alioth.pcsclite.smartcardccid</string> |
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 Control.Monad (when) | |
import Data.Char (toLower) | |
import Data.List (transpose) | |
import System.Random (randomIO) | |
wordsPath :: FilePath | |
wordsPath = "words.txt"-- "/usr/share/dict/words" | |
data GameState = GameState | |
{ _wordToGuess :: String |