Skip to content

Instantly share code, notes, and snippets.

View test4.py
import subprocess
import argparse
import i3ipc
import shlex
import time
def already_exists(connection, app):
tree = connection.get_tree()
try:
View preconfig
bindsym $super+Shift+5 $exec "xdotool search --all --pid $(xdotool getwindowpid $(xdotool getactivewindow)) \
--name $(xdotool getwindowname $(xdotool getactivewindow)) set_window --name \
$(zenity --entry --text 'Name last focused window:')"
View tags
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 0.0.0 /45968eff/
Base pages.py /^class Base(BaseLogger):$/;" c
Base search.py /^class Base(BaseLogger):$/;" c
BaseLogger config.py /^class BaseLogger:$/;" c
View notpron.txt
user pass jumping link:
“user: 6, 5, 9, 10, 4, ?, 5
pass: 501, 10, 999, 4, 1, ?, 11, 500”
VI, V, IX, X, IV, ?, V
DI, X, CMXCIX, IV, I, ?, XI, D
View test_pages.py
from lattes.pages import Preview, Curriculum, Xml
from fake_useragent import UserAgent
import tempfile
import pytest
UA = UserAgent()
@pytest.mark.parametrize('short_id, expected_date', [
('K4130902J7', '25/03/2005'),
View gist:1af169b3c7b15a17c4175cdd376d94c0
xdotool search --all --pid $(xdotool getwindowpid $(xdotool getactivewindow)) \
--name $(xdotool getwindowname $(xdotool getactivewindow)) set_window --name \
$(zenity --entry --text 'Name last focused window:')
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',
You can’t perform that action at this time.