Skip to content

Instantly share code, notes, and snippets.

View JohnRipper's full-sized avatar
🎯
Focusing

JohnRipper

🎯
Focusing
View GitHub Profile
from ssh_client import ssh
import sys
import time
for arg in sys.argv:
room = arg
if True:
connection = ssh()
print('Attempting to connnect to pi zero.')
@JohnRipper
JohnRipper / template.py
Created September 20, 2020 00:27
template for i3ipc extensions
#!/usr/bin/env python3
import i3ipc
from i3ipc import Event
from i3ipc.events import IpcBaseEvent, Event
i3 = i3ipc.Connection()
# callback for when workspace focus changes
def on_workspace(i3, e:IpcBaseEvent):
print(e.__dict__)
// Colors
$black: hsl(0, 44%, 41%) !default
$black-bis: hsl(0, 0%, 7%) !default
$black-ter: hsl(0, 0%, 14%) !default
$grey-darker: hsl(0, 0%, 21%) !default
$grey-dark: hsl(0, 0%, 29%) !default
$grey: hsl(0, 0%, 48%) !default
$grey-light: hsl(0, 0%, 71%) !default
$grey-lighter: hsl(0, 0%, 86%) !default
@JohnRipper
JohnRipper / swapchat.js
Last active June 10, 2023 22:32
swapchatnuserlist
// ==UserScript==
// @name swapchat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description swap chat with userlist.
// @author You
// @match https://stumblechat.com/room/valhalla
// @icon https://www.google.com/s2/favicons?sz=64&domain=stumblechat.com
// @grant none
// ==/UserScript==