View SSH-through-bastion.dokuwiki
* Linux: ~/.ssh/config:
<code>
Host SHORTCUT
Hostname FULLURL_OR_IP_TARGET_HOST
User USERNAME
Host FULLURL_OR_IP_TARGET_HOST
ProxyCommand ssh -a -W %h:%p BASTION_HOST
Port NUMBER
View emsdk_env.sh
#!/usr/bin/env bash
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo 'Script must be sourced'
exit -1
fi
cwd=$(pwd)
cd /INSTALLDIR/emsdk-portable
source emsdk_env.sh
View overlay2.sh
# First, make sure you're using systemd and
# the prerequisites are fulfilled:
# https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#prerequisites
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
mkdir -p /etc/systemd/system/docker.service.d
View mariadb-docker-dumpcreate.md

Create database dump from MariaDB Docker container

docker-compose exec mariadb sh -c \
  'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' \
  ____encoding____

encoding

View toggle_wifi_hotspot.bat
@ECHO OFF
ECHO Setting up or shutting down a hosted network
SET /P ACTION="ENABLE [E] DISABLE [D] INFO[I]: "
IF /I "%ACTION:~,1%" EQU "E" GOTO enable
IF /I "%ACTION:~,1%" EQU "D" GOTO disable
IF /I "%ACTION:~,1%" EQU "I" GOTO info
GOTO unknown
:enable
SET DEFAULT_SSID=rillke's hotspot
View fick.js
/**
* Copyright 2014 by Rainer Rillke
* Makes sure Flickr iframes and images always look great.
* You may use and re-distribute and modify this file, povided
* that the above copyright notice and this text will be
* preserved.
* This software comes without any warranty.
* You may also use it under the terms of the JSON license.
*/
View for php.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles>
<profile name="mw">
<setting id="indentationChar" value="&#9;"/>
<setting id="insert_space_after_opening_paren_in_declare" value="false"/>
<setting id="insert_space_before_closing_paren_in_declare" value="false"/>
<setting id="insert_space_before_opening_paren_in_declare" value="false"/>
<setting id="org.eclipse.php.core.formatter.insert_new_line_in_function_invoke" value="0"/>
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split" value="false"/>
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy" value="2"/>