Skip to content

Instantly share code, notes, and snippets.

View abdulazizalmass's full-sized avatar
🔙
in Time

Abdulaziz A. Almass abdulazizalmass

🔙
in Time
View GitHub Profile
@abdulazizalmass
abdulazizalmass / quick_server.py
Last active January 27, 2022 17:36 — forked from othmanalikhan/quick_server.py
Bare bones Python (Flask) Upload/Download Server
"""
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
@pgaskin
pgaskin / termux-sms-backup.sh
Created September 2, 2018 14:12
Backs up all SMS messages using Termux.
#!/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) |
@gatopeich
gatopeich / install_Jupyter.sh
Last active March 29, 2024 22:10
Install Jupyter iPython Notebook on Android via Termux
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
@anderssonjohan
anderssonjohan / Info.plist
Created March 1, 2016 21:21
OSX SmartCardServices driver config with the ACS122U product ID (0x2200) disabled (/usr/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/Info.plist)
<?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>
@ToJans
ToJans / hangman.hs
Last active September 28, 2019 15:25
A haskell implementation of the hangman game
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