Skip to content

Instantly share code, notes, and snippets.

View stonecharioteer's full-sized avatar

Vinay Keerthi stonecharioteer

View GitHub Profile
@stonecharioteer
stonecharioteer / puzzle.py
Created September 17, 2019 04:06
run this to decode
s = """Jrypbzr gb gur svefg Ivfn OnatClcref zrrghc rirelbar!
Guvf vf gur svefg gvzr jr'ir vaivgrq gur Onatnyber Clguba zrrghc pbzzhavgl gb bhe bssvpr, fb rirelbar gnxr n punapr gb argjbex.
Funer lbhe xabjyrqtr, lbhe gvcf naq lbhe rkcregvfr bs Clguba.
Nobir nyy, unir sha!!
Gb bhe ivfvgbef, Ivfn vf uvevat. Ernpu bhg gb hf naq funer lbhe erfhzrf."""
server {
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
@stonecharioteer
stonecharioteer / .nvimrc
Last active May 24, 2020 09:58
dotfiles
" set leader to `,`
let mapleader = ","
" turn on line numbers
set number
" enable syntax highlighting
syntax on
" enable ruler
set ruler
" highlight search
set hls
@stonecharioteer
stonecharioteer / links.rst
Last active August 19, 2019 16:50
A bunch of links I need to keep around.
@stonecharioteer
stonecharioteer / .zshrc
Last active December 7, 2022 21:20
.zshrc file for oh my zsh
# export ZSH_TMUX_AUTOSTART="true"
alias tmux="tmux -u" # for unicode in tmux
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
@stonecharioteer
stonecharioteer / rsync_ngrok.sh
Last active January 12, 2023 22:44
File to help rsync over ngrok.
#!/bin/bash
# Make sure to use this on the server side: `ngrok tcp 22`
# Usage:
# rsync_ngrok USERNAME REMOTEDIRPATH PORTNUMBER LOCALDIRPATH
# if no arguments are given to the script.
if [[ $# -eq 0 ]] ; then
echo 'rsync_ngrok Script used to download files or folders from remote host offering usage via ngrok.'
echo 'Usage: rsync_ngrok USERNAME REMOTEDIRPATH PORTNUMBER LOCALDIRPATH'
@stonecharioteer
stonecharioteer / app.py
Created December 3, 2018 10:26 — forked from jtpio/app.py
Dash URL State example
import dash
import dash_core_components as dcc
import dash_html_components as html
from urllib.parse import urlparse, parse_qsl, urlencode
from dash.dependencies import Input, Output
app = dash.Dash()
app.config.suppress_callback_exceptions = True
@stonecharioteer
stonecharioteer / human_design_schematic.py
Last active October 9, 2018 16:24
Human Design Schematic Class definition
class Hand:
pass
class HumanBeing:
def __init__(self, *args, **kwargs):
pass
def __new__(self, *args, **kwargs):
pass
@stonecharioteer
stonecharioteer / test_romaji_hiragana.py
Created September 30, 2018 16:40
Function to print the kana question to WaveShare screen.
def test_romaji_hiragana(romaji, options):
"""Prints a question to the screen, asking which of the
printed hiragana correspond to the given romaji."""
from epd import epd2in7b as epdlib
from PIL import Image, ImageDraw, ImageFont
# TODO: Make a library for this.
canvas_width, canvas_height = 264, 176
canvas_black = Image.new(
"L",
(canvas_width, canvas_height),
@stonecharioteer
stonecharioteer / start_quiz.py
Created September 30, 2018 16:38
Start the hiragana quiz.
def start_quiz():
"""Starts the epaperhat quiz."""
import random
hiragana = get_hiragana()
points = 0
total = 0
while True:
total+=1
hiragana_to_test = random.choice(list(hiragana.keys()))