Let's assume we have a pod called nginx
running in the namespace nginx-test
.
kubectl create namespace nginx-test
kubectl run nginx --image=nginx -n nginx-test
/* | |
Keyboard LED control for AutoHotkey_L | |
http://www.autohotkey.com/forum/viewtopic.php?p=468000#468000 | |
KeyboardLED(LEDvalue, "Cmd", Kbd) | |
LEDvalue - ScrollLock=1, NumLock=2, CapsLock=4 | |
Cmd - on/off/switch | |
Kbd - index of keyboard (probably 0 or 2) try 0 to 5 |
const mode = 'testing'; | |
// const mode = 'enforce'; | |
const max_age = 604800; // 1 week | |
addEventListener('fetch', (event) => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
const handleRequest = async (request) => { | |
const url = new URL(request.url); |
If you want to create a bootable USB stick for Windows (Windows 10/11 installation media) have a look at this guide.
#!/usr/bin/env bash | |
# helper variables to make text bold | |
bold_start=$(tput bold) | |
bold_end=$(tput sgr0) | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-c|--context) | |
CONTEXT="$2" |
##Set up mosh (mobile shell) on Uberspace and Mac
First of all you have to email the Uberspace team (hallo@uberspace.de) and ask for opening an UDP port for mosh (don't forget to mention your username and uberspace server [you can get it with the command hostname
]).
####On the Uberspace server:
Issue following command to execute the script from below:
curl -L http://goo.gl/PBo45c | bash
#!/bin/bash | |
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_8.0/ /' >> /etc/apt/sources.list.d/fish.list | |
apt-get update | |
wget -qO - http://download.opensuse.org/repositories/shells:fish:release:2/Debian_8.0/Release.key | apt-key add - | |
apt-get update | |
apt-get install -y fish |
#!/bin/bash | |
mkdir ~/vagrant_tmp | |
cd ~/vagrant_tmp | |
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm | |
rpm2cpio vagrant_1.7.2_x86_64.rpm | cpio -id | |
mv ./opt/vagrant/bin/vagrant ~/.toast/armed/bin/ | |
mv ./opt/vagrant/embedded/ ~/.toast/armed/ | |
cd && rm -rf ~/vagrant_tmp |
#!/bin/bash | |
std_install_dir="${HOME}/.toast/armed" | |
printf "The standard install directory is [${std_install_dir}].\nIf you want to change it, insert another directory: ${HOME}/" | |
read install_dir | |
if [[ "$install_dir" == "" ]]; then | |
install_dir="$std_install_dir" | |
else |
##This is a guide to install HabitRPG on an Uberspace.
###Installation
First you have to create a folder which is accessable from the web (e.g. habitrpg.yourdomain.com) and then move to it. In this folder execute
git clone https://github.com/HabitRPG/habitrpg.git .
After that, you have to download some dependencies with: