You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
{ | |
"title": "SpaceFN", | |
"rules": [ | |
{ | |
"description": "SpaceFN: Space enables SpaceFN mode (see: https://geekhack.org/index.php?topic=51069.0)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar" |
{ | |
"title": "SpaceFN", | |
"rules": [ | |
{ | |
"description": "SpaceFN: Space enables SpaceFN mode (see: https://geekhack.org/index.php?topic=51069.0)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar" |
# You can use set keymap on X window easily, this configuration just tell you how to remapping the Capslock to control | |
# it based on these two articles: | |
# http://www.noah.org/wiki/CapsLock_Remap_Howto | |
# https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration | |
# we use loadkeys for setting. | |
# copy the `dumpkeys` output to our configuration file | |
sudo mkdir -p /usr/local/share/kbd/keymaps |
;; Enable ligatures without prettify-symbols | |
(provide 'add-pragmatapro-symbol-keywords) | |
(defconst pragmatapro-fontlock-keywords-alist | |
(mapcar (lambda (regex-char-pair) | |
`(,(car regex-char-pair) | |
(0 (prog1 () | |
(compose-region (match-beginning 1) | |
(match-end 1) |
#!/bin/bash | |
echo -e '#!/bin/bash\n' > list.sh | |
echo -e '########### Brew Install List ###########' >> list.sh | |
brew leaves | sed 's/^/brew install /' >> list.sh && | |
echo -e '\n########### Brew Cask Install List ###########' >> list.sh && | |
brew cask list | sed 's/^/brew cask install /' >> list.sh && | |
echo -e '\n########### Mac App Store Install List ###########' >> list.sh && |
solarized dark color scheme for VanDyke SecureCRT (c.f. http://ethanschoonover.com/solarized ) | |
edit %appdata%\VanDyke\Config\Global.ini, find the line marked B:"ANSI Color RGB" and replace the two hex strings below it with the ones listed here: | |
B:"ANSI Color RGB"=00000040 | |
07 36 42 00 dc 32 2f 00 85 99 00 00 b5 89 00 00 26 8b d2 00 d3 36 82 00 2a a1 98 00 ee e8 d5 00 | |
00 2b 38 00 cb 4b 16 00 58 6e 75 00 65 7b 83 00 83 94 96 00 6c 71 c4 00 93 a1 a1 00 fd f6 e3 00 |
This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.
The script will create backups using tar
with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.
To create backup script that will be executed every day we can create backup script in /etc/cron.daily/
folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:
touch /etc/cron.daily/pvehost-backup
#!/usr/bin/env bash | |
# | |
# Fetch secrets for local development from Azure KeyVault | |
# and print them to stdout as a bunch of env var exports. | |
# These secrets should be added to your local .env file | |
# to enable running integration tests locally. | |
# | |
KEY_VAULT=$1 | |
function fetch_secret_from_keyvault() { |
#!/bin/bash | |
# Use $ which youtube-dl to get the path. | |
youtube_dl_path=/usr/local/bin/youtube-dl | |
# https://askubuntu.com/a/157787 | |
if ps aux | grep -v grep | grep $youtube_dl_path > /dev/null | |
then | |
echo "youtube-dl is running" | |
exit 1 |