This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Neofetch config file | |
# https://github.com/dylanaraps/neofetch | |
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
echo | |
info title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIMEOUT_SECONDS=900 | |
PRIVATE_PATH=/home/`whoami`/Private | |
ecryptfs-mount-private && | |
while true; do | |
timeout ${TIMEOUT_SECONDS} inotifywait ${PRIVATE_PATH} || (echo "Timeout" && ecryptfs-umount-private && break) | |
t=`stat -f -c %T ${PRIVATE_PATH}` | |
if [[ "${t}" != "ecryptfs" ]]; then | |
echo "Not ecryptfs, exiting" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from constraint import * | |
from collections import Counter | |
problem = Problem() | |
opts = ['A', 'B', 'C', 'D'] | |
for i in range(1, 10 + 1): | |
problem.addVariable(str(i), ['A', 'B', 'C', 'D']) | |
q2m = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dog Square Custom Keymap | |
// @version 0.1 | |
// @description Custom keymap | |
// @author Saren | |
// @match https://tobychui.github.io/Dog-Square/ | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from pyquery import PyQuery as pq | |
from selenium import webdriver | |
from operator import itemgetter | |
from re import sub | |
from datetime import datetime | |
from os.path import dirname, realpath | |
class BuyStockSession(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
if __name__ == '__main__': | |
points = set() | |
for _ in range(int(input())): | |
x, y = map(int, input().split()) | |
points.add((x, y)) | |
rects = [] | |
for lt in points: | |
for rb in points: | |
if rb[0] <= lt[0] or rb[1] >= lt[1]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from multiprocessing import Pool, Queue | |
from itertools import product | |
PROBLEM = ' 6008 ' | |
DEPTH = 2 | |
EMPTY = 0, 0, 0, 0, 0, 0, 0 | |
DIGIT_FONTS = [ | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Neofetch config file | |
# https://github.com/dylanaraps/neofetch | |
echo | |
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
info title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zstyle ':prompt:grml:*:items:user' pre '[%F{yellow}' | |
zstyle ':prompt:grml:*:items:percent' pre ']' | |
source /etc/profile.d/alias.sh | |
export EDITOR=nano | |
export VISUAL=nano |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sta='sudo systemctl start' | |
alias sto='sudo systemctl stop' | |
alias stt='sudo systemctl status' | |
alias rst='sudo systemctl restart' | |
alias enb='sudo systemctl enable' | |
alias dsb='sudo systemctl disable' | |
alias s='sudo apt install' | |
alias i='sudo apt install' | |
alias r='sudo apt remove' |