This file contains 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/python | |
import subprocess | |
import re | |
from pathlib import Path | |
import os | |
WD = Path().absolute() | |
PKGBUILD_IN_PATH = Path("PKGBUILD").absolute() | |
OUT_PATH = Path("aur_out").absolute() |
This file contains 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 fish | |
# locations | |
set intercept_dir_loc /etc/interception | |
set mapping_loc $intercept_dir_loc/dual-function-keys/caps2escape.yaml | |
set daemon_config_loc $intercept_dir_loc/udevmon.d/my-keyboards.yaml | |
set file_name_symbols alt_gr_mapped_to_caps_lock | |
set xkb_symbols_loc $HOME/.xkb/symbols/$file_name_symbols | |
set sway_config_loc $HOME/.config/sway/config |
This file contains 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
// to quickly try the script open | |
// https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJICE4GcIDYAsAInGHMgN4BQyyAtsLRACoCeADhAFzJZhSgBzADTVkMYABsIIOI269+IYaIgAPSCCzAA9iHl9BImgCMCAExJx9igZQC+lSjACuIBGB0hkAfWPY8+EzaAIJQUHAs6M4wMNAAFH44BNaCAJQUogBucFDIxqA5LN4KgsgAvMgk2sYJ-gSpANxZOchSXhX5MlBFJUoAdG0CYAAWTTTZucYskFjlyCAQAO7IAKqgYAAcoeEscW2NojDauXETyMBzAAwN58gAPK3SN8AA1C-pVDQm0xBYANrAAC6c06hWKBn6CGGOQAwtozBBgmA4sADjQHDQoBAwM4oF4pjMmg5HAgJNhZpgkvgAMoQgQZGgWUjcDB1IiWUS+ZI8OmOGgIXQKZzuY61Km0mwpJQfUQ0EbALB9Ln4EFsiWCMZfeWKplkCrIbVKhFC9y4iBxNHIYk0bzGvjCnFYi0Mr4CzRgZACKDaZxsWYVBbLABKEAEAFFVGw4gB6OIAfk4us4cT6ACo441UvHOGmGqlU9mZIwyinU6kADp9UsZvPZ3P5xIBISl1LR1J9NQQBBxQ3Ky38wUev7eIR0BjMdgQUfiNqyKfINQaLS6UemfC64EVL0+v2azHY3FechjxisDjTyTSOfcBEChErIOoOG0Ni6aTImdXxipUeL6TLkBV3MSwrVEa1PWxKIYniVJuDWcAtjCCIXX3R0vF8Nkgm2CIoNiKAe2GBU+l1Po111VIwL5CCwHQCRqgtbhaOqFDkCxND5iWZAmJqP5DQESDojwi1AVHY8wEnbhDRI+hT0nK1LXA-iwAAMUvAA5OcAHVgBGP9NE8BieRsFi2MPZAAAMABJyCkyw+k-IsIDsPprNs0gO3Uf9PDsczNUU7FVKkQzApQT4vlMvEOOWEK4llL5eMIxUlO451sC4 |
This file contains 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
window.gameManager = { | |
onGameInit: function () { | |
return { | |
userId: "1", | |
gameId: "2", | |
roomId: "3", | |
highestScore: 90, | |
lastLevel: 0, // user's current level | |
gameMode: "score", // "score" or "win" | |
isFirstOpen: true, // true or false |
This file contains 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
playsound==1.2.2 | |
gTTS==2.1.1 |
This file contains 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
youtube-dl==2020.7.28 |
This file contains 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
import PyPDF2 | |
def encrypt_pdf(file_to_encrypt, password, save_file_as): | |
pdf_writer = PyPDF2.PdfFileWriter() | |
with open(file_to_encrypt, "rb") as pdf_input_file: | |
pdf_reader = PyPDF2.PdfFileReader(pdf_input_file) | |
for page_num in range(pdf_reader.numPages): |
This file contains 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
from pygments import highlight | |
from pygments.lexers import PythonLexer | |
from pygments.formatters import HtmlFormatter | |
code = '''helloworld_string = 'Hello! World' | |
print f"{helloworld_string}"''' | |
template = '''<html> | |
<head> | |
<title>How to use Pygments</title> |
This file contains 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
import psutil | |
def memory_usage_psutil(pid_or_proc_name): | |
"""Find the memory usage using psutil""" | |
pid_or_proc_name = str(pid_or_proc_name) | |
mem_info = None | |
# iter over processes and find the desired one | |
for proc in psutil.process_iter(['pid', 'name', 'username']): |
This file contains 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
argh |
NewerOlder