This file contains 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 | |
# Define your global variables | |
# | |
# Add names of all global variables to GLOBALS | |
GLOBALS=" GLOBALS \ | |
PATH \ | |
SCRIPT_NAME \ | |
ARG \ | |
OPTION \ |
This file contains 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
To install Tappio to *NIX-like system that runs Wine: | |
1) create a directory for Tappio, for example under your home directory: | |
$ mkdir $HOME/tappio && cd $HOME/tappio | |
2) download tappio-setup.exe: | |
$ wget http://www.lahdenniemi.fi/jussi/tappio/tappio-setup.exe | |
3) set local wine-environment for tappio: | |
$ export WINEPREFIX=$(pwd)/wine | |
4) run the installer: | |
$ wine tappio-setup.exe |
This file contains 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 | |
if [[ -e /.configure_satellite_client && $EUID = 0 ]]; then | |
SATELLITE_USERNAME=exampleuser | |
SATELLITE_PASSWORD=examplepass123 | |
SATELLITE_SERVER=satellite.example.com | |
FINISH_SCRIPT=/root/post_install_finish_script.sh | |
LOG_FILE=/root/post_install_finish_script.log | |
satellite_api=https://${SATELLITE_SERVER}/api/v2 | |
hostname= |
This file contains 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
SSH_AGENT_PID=999999999999999 | |
if [ -r ~/.ssh/agent ]; then | |
source ~/.ssh/agent >/dev/null | |
fi | |
if [ -r "/proc/$SSH_AGENT_PID/exename" ]; then | |
if [[ $(basename $(cat /proc/$SSH_AGENT_PID/exename)) != ssh-agent ]]; then | |
rm -f ~/.ssh/agent $SSH_AUTH_SOCK | |
unset $SSH_AGENT_PID | |
fi |
This file contains 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
[user@ircshell ~]$ mkdir -p ~/bin | |
[user@ircshell ~]$ cat > ~/bin/start_irssi.sh <<-'EOF' | |
#!/bin/bash | |
# Set timezone | |
export TZ='EET' | |
# | |
# Start a new screen with unicode support (-U), named as 'irc' (-S), | |
# in detached mode (-m -d) and run irssi in it. | |
/usr/bin/screen -U -S irc -m -d /usr/bin/irssi |
This file contains 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
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
font pango:monospace 10 |
This file contains 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
# Filename: check_ssh_agent.sh | |
# | |
# Description: Check if ssh-agent environment exists for the session and | |
# create it if it does not. | |
# | |
# NOTE: | |
# Do not run this command directly, but import it in your .bashrc file with: | |
# | |
# source /path/to/check_ssh_agent.sh | |
# |
This file contains 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
span[class=regexnest1] { | |
color: rgb(237, 177, 208); | |
} | |
span[class=regexnest2] { | |
color: rgb(233, 229, 162); | |
} | |
span[class=regexplain] { | |
color: rgb(221, 211, 215); |