This guide is a compilation of four other guides. It instructs how to create a set of GnuPG keys which the master key is offline and the actual subkeys only live inside your YubiKey (acting as a smartcard). What ends up in your (online) daily machine are only the stubs of the subkeys.
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 | |
| # uses https://github.com/jonhoo/mktrayicona to add tray icon | |
| PID=$(pgrep ikec) | |
| SITENAME=SITENAME | |
| VPNUSER=USERNAME | |
| VPNPASS=PASSWORD | |
| LOG=$HOME/.vpn.out | |
| ERR=$HOME/.vpn.err |
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 | |
| strsplits=($(ssss-split -t 3 -n 5 -s 256 -Q <<< ${1})) | |
| for (( i=0; i<=$(( ${#strsplits[*]} -1 )); i++ )) | |
| do | |
| qrencode -o key_${i}.png ${strsplits[$i]} | |
| done |
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
| 1. Copy/Paste the information below to the clipboard | |
| 2. Open the spreadsheet whose sheets need to be alphabetised | |
| 3. Choose Tools > Script editor > Blank (this opens a new tab in the browser) | |
| 4. Press Control+A followed by Control+V copy and paste the script in | |
| 5. Press Control+S to save the script | |
| 6. Choose Run > sortSheets | |
| 7. Go back to the spreadsheet tab to view the new sorted tab order | |
| --Copy everything below this line-- | |
| function sortSheets () { |
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
| ffmpeg -i test.wav -y -loop 1 -i bg.jpg -filter_complex \ | |
| "[0:a]showfreqs=cmode=separate:mode=bar:ascale=cbrt:fscale=log:s=600x600:colors=#ffffff[tmp]; \ | |
| [tmp]alphaextract,format=yuv420p,split=3[box][up][down]; \ | |
| [up]crop=in_w:in_h/2:0:0[up]; \ | |
| [down]crop=in_w:in_h/2:0:in_h/2,vflip[down];[up][down]vstack[tmp]; \ | |
| [tmp]gblur=sigma=10,curves=master='0/0 0.49/0 0.51/1 1/1',format=rgba[tmp]; \ | |
| [box]drawbox=w=600:h=600:c=#ffffff:t=fill:replace=1,format=rgba[box]; \ | |
| [box][tmp]alphamerge[tmp]; \ | |
| [tmp]crop=in_w:in_h/2:0:in_h/4[tmp]; \ | |
| [1:v]scale=1280:-1,crop=in_w:720[bg]; \ |
ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]ahistogram=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a ahistogram.mp4
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
| <?xml version="1.1" encoding="utf-8"?> | |
| <rack><plugin type="mono" instance-name="Mono Input" input-index="1" output-index="1"> | |
| <preset bank="0" program="0" plugin="mono" name=""> | |
| <param name="bypass" value="0" /> | |
| <param name="level_in" value="1" /> | |
| <param name="level_out" value="1" /> | |
| <param name="meter_in" value="0" /> | |
| <param name="meter_outL" value="0" /> | |
| <param name="meter_outR" value="0" /> | |
| <param name="clip_in" value="0" /> |
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
| # Creating a system sound monitor | |
| pcm.pulse_monitor { | |
| type pulse | |
| device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | |
| } | |
| ctl.pulse_monitor { | |
| type pulse | |
| device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | |
| } |
pacman -S sudo
Use sed to uncomment the wheel group from sudoers, then hijack the EDITOR variable to copy the modified version back via visudo.
sed 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers > /etc/sudoers.new
EDITOR="cp /etc/sudoers.new" visudo
rm /etc/sudoers.new