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
from argparse import ArgumentParser | |
import sys | |
import socket | |
import getopt | |
import threading | |
import subprocess | |
upload = False | |
def generate_argument_parser(): |
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 python | |
from sys import argv | |
from evdev import InputDevice, ecodes | |
# usage: keystate-nonx [-h] [-i INPUT_DEVICE_CODE] [-oc OUTPUT_COLOR] [-ic INPUT_COLOR] [-b BLOCK_INSTANCE] | |
INSTANCE = "CAPS" | |
EVENT_NUMBER = "0" | |
COLOR_OFF = "#222222" |
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
[Unit] | |
Description=Swaylock after suspension | |
After=suspend.target | |
[Service] | |
User=%I | |
Type=forking | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/local/bin/lock-screen.sh |
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
#Blum's algorithm for memorizing passwords. | |
#Made by Pedro Rodríguez de Oliveira (WolfangAukang), 2015. | |
#Linotype ordered matrix, with the variant of the numeric digits | |
linotype = [['e','t','a','o','i','n'],['s','h','r','d','l','u'],['c','m','f','w','y','p'],['v','b','g','k','q','j'],['x','z','0','1','2','3'],['4','5','6','7','8','9']] | |
#String receptor | |
def blumcrypto(strToCode): | |
strToCode = [x.lower() for x in list(strToCode)] | |
print (blumcryptoEncr([x.lower() for x in list(strToCode)])) #We will work with lowercase letters |
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 xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
StartupNotify=true | |
Name=Smartgit | |
Exec=env /opt/smartgit/bin/smartgit.sh | |
Icon=/opt/smartgit/bin/smartgit-64.png |
NewerOlder