alias enc='openssl enc -e -aes128 -base64 -pass "env:PASS"'
alias dec='openssl enc -d -aes128 -base64 -pass "env:PASS"'
| #!/bin/bash | |
| sleep 15 | |
| # Create gadget | |
| mkdir /sys/kernel/config/usb_gadget/mykeyboard | |
| cd /sys/kernel/config/usb_gadget/mykeyboard | |
| # Add basic information | |
| echo 0x0100 > bcdDevice # Version 1.0.0 |
| set-option -g mouse on | |
| bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" | |
| # Resize panes with arrow keys because alt-arrow keys doesn't work | |
| bind-key -r Up resize-pane -U | |
| bind-key -r Down resize-pane -D | |
| bind-key -r Left resize-pane -L | |
| bind-key -r Right resize-pane -R |
| #!/bin/bash | |
| clear | |
| bold=$(tput bold) | |
| normal=$(tput sgr0) | |
| if [[ $1 =~ ^.*youtu.*$ ]]; then | |
| echo "${bold}Youtube-dl${normal}" | |
| echo "> ${1}" | |
| #!/data/data/com.termux/files/usr/bin/bash | |
| # | |
| # This is a termux-url-opener script to do diffrent tasks on my Android phone | |
| # | |
| # | |
| # | |
| # How to use this script | |
| ############################# | |
| # | |
| # Install git |
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| async def hello(): | |
| await asyncio.sleep(3) | |
| print('Hello!') | |
| if __name__ == '__main__': | |
| loop.run_until_complete(hello()) | |
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| echo "Box type must be specified (virtualbox, vmware_desktop, parallels)" | |
| exit 1 | |
| fi | |
| # Find all boxes which have updates | |
| AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2` |
| File: pinentry.info, Node: Top, Next: Using pinentry, Up: (dir) | |
| Introduction | |
| ************ | |
| This manual documents how to use the PINENTRY and its protocol. | |
| The PINENTRY is a small GUI application used to enter PINs or | |
| passphrases. It is usually invoked by GPG-AGENT (*note Invoking the | |
| gpg-agent: (gnupg)Invoking GPG-AGENT, for details). |
| function waitForElement(selector) { | |
| return new Promise(function(resolve, reject) { | |
| var element = document.querySelector(selector); | |
| if(element) { | |
| resolve(element); | |
| return; | |
| } | |
| var observer = new MutationObserver(function(mutations) { |
| function monitorEvents(element) { | |
| var log = function(e) { console.log(e);}; | |
| var events = []; | |
| for(var i in element) { | |
| if(i.startsWith("on")) events.push(i.substr(2)); | |
| } | |
| events.forEach(function(eventName) { | |
| element.addEventListener(eventName, log); | |
| }); |