Skip to content

Instantly share code, notes, and snippets.

𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮

Joseph Chiocchi yyolk

𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮
View GitHub Profile
yyolk /
Created Feb 9, 2020
a bash cli for googling things from the cli using, can be easily ported elsewhere source and then `goog something i'm looking for`
# modified from
rawurlencode() {
local string="${1}"
local strlen=${#string}
local encoded=""
local pos c o
for (( pos=0 ; pos<strlen ; pos++ )); do
case "$c" in
yyolk /
Created Feb 9, 2020 — forked from luvarqpp/
setup L2TP IPSEC VPN in archlinux using NetworkManager

setup L2TP IPsec VPN in archlinux using NetworkManager

install networkmanager-l2tp first:

yaourt -S networkmanager-l2tp
apt install -y network-manager-l2tp
yyolk /
Created Feb 12, 2019
generates a random psw of 8-16 of length
import string
MIN_LEN, MAX_LEN = 8, 16
from random import randint, choice
characters = string.ascii_letters + string.punctuation + string.digits
password = lambda : "".join(choice(characters) for x in range(randint(MIN_LEN, MAX_LEN)))
class Base():
def __init__(self, *a, **k):
exec( "self.{} = self._op".format(
def _op(self, *a, **k):
yyolk /
Created Aug 6, 2018 — forked from softdetours/
A shell script to display SEE YOU SPACE COWBOY whenever you logout of your terminal!
#!/usr/bin/env bash
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence
yyolk / CapsLockCtrlEscape.ahk
Created Aug 5, 2018 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki ( (Plus contribs from @randy909 & @mmikeww.)
View CapsLockCtrlEscape.ahk
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
if (g_ControlRepeatDetected)
yyolk /
Created Aug 4, 2018 — forked from platdrag/
An example generic wrapper for making any iterator / generator thread-safe compatible with python 3
import threading
A generic iterator and generator that takes any iterator and wrap it to make it thread safe.
This method was introducted by Anand Chitipothu in
but was not compatible with python 3. This modified version is now compatible and works both in python 2.8 and 3.0
class threadsafe_iter:
"""Takes an iterator/generator and makes it thread-safe by
serializing call to the `next` method of given iterator/generator.
yyolk /
Created Jul 14, 2018 — forked from dysinger/
A simple nginx/webdav setup for use with things like mobile-org
# on ubuntu: need some utils & dev libs
sudo apt-get install apache2-utils openssl libssl-dev libpcre3-dev
# compile nginx
cd /tmp
curl | tar xz
cd nginx*
./configure --with-http_ssl_module --with-http_dav_module \
yyolk /
Created Jul 4, 2018 — forked from alexcasalboni/
Bridge Function between Kinesis Streams and Step Functions

Bridge Function between Kinesis Streams and Step Functions

For each record read from the Kinesis Stream, a StepFunction state machine will be executed asynchronously.

Required Environment Variables

  • region: the AWS region where your StepFunction state machine is defined.
  • stateMachineArn: the ARN of the StepFunction state machine you want to execute.


yyolk /
Created Jul 2, 2018 — forked from joemiller/
script for updating dynamic DNS records on (hurricane electric)
# Script for updating DNS records on Hurricane Electirc's DNS system (
# The record will be updated with the IP address that originates the request.
# Usage
# -----
# Create config file `/etc/he-dns-update.conf`:
You can’t perform that action at this time.