Skip to content

Instantly share code, notes, and snippets.

View head-lamp's full-sized avatar
💭
it's ya boy

basil-dev head-lamp

💭
it's ya boy
View GitHub Profile
@head-lamp
head-lamp / tmux_local_install.sh
Last active May 31, 2019 21:46 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.9
@head-lamp
head-lamp / get_password_in_cli.php
Last active May 24, 2019 20:32
for cli use: get password silently in php (shell)
<?php
# stty -echo; turn off echoing on the tty
# read password; read input silently
# stty echo; turn on echoing on the tty
# echo \$password; echo password to be captured by php
$password = `stty -echo; read password; stty echo; echo \$password;`;
import random
random.seed()
#this global variable is just for testing
#please don't mind it for now
ERROR = "NAH UH NOT TODAY"
class Syllable:
#syllables need to have one vowel at least and probably should be pronounceable
def __init__(self):