Instantly share code, notes, and snippets.

View config
general {
interval = 1
colors = true
color_good = '#88b090'
color_degraded = '#ccdc90'
color_bad = '#e89393'
}
order += "frame whoami"
order += "frame sys_data"
View quake.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import argparse
import time
import json
import sys
import re
View test.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import json
floaing = []
def search(tree):
View gist:7a5f28faf43744a7ebda3caeeef0813f
{'id': 94278245720320,
'type': 'root',
'orientation': 'horizontal',
'scratchpad_state': 'none',
'percent': 1.0,
'urgent': False,
'focused': False,
'layout': 'splith',
'workspace_layout': 'default',
'last_split_layout': 'splith',
View ocr.sh
#!/bin/bash
say=
clipboard=
vim=
help(){
msg='./script.sh [output]
./script.sh [-s|-c|-v]
-s will speak the content
View say.sh
#!/bin/bash
voices_dir=$HOME/.config/voices/
default_voice='slt'
default_speed='0.8'
voice_path=
speed=
voice=
file=
View test.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import sys
import subprocess
from datetime import datetime
ips = [
View screen.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import re
class Output:
def __init__(self, name, status):
self.name = name
self.status = status
View screen.sh
#!/bin/bash
lvds_string=$(xrandr | grep -E "^LVDS\S+1")
vga_string=$(xrandr | grep -E "^VGA\S+1")
hdmi_string=$(xrandr | grep -E "^HDMI\S+1")
DEFAULT=$(echo $lvds_string | cut -d ' ' -f 1)
DEFAULT_STATUS=$(echo $lvds_string | cut -d ' ' -f 2)
HDMI=$(echo $hdmi_string | cut -d ' ' -f 1)
View screen.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import re
class Output:
def __init__(self, name, status):
self.name = name
self.status = status