I hereby claim:
- I am korovamilk on github.
- I am korovamilk (https://keybase.io/korovamilk) on keybase.
- I have a public key whose fingerprint is F8E8 D517 E9D0 9E8D 880B 0064 5ED1 D31E 5146 7A9D
To claim this, I am signing this object:
# example email - real name list "<filename>" | |
# (note that name4 entry is broken - email appears 2 times | |
name1@example.com;"Real Name" | |
name2@example.com;"Real Name" | |
name3@example.com;"Real Name" | |
name4@example.com;name4@example.com;"Real Name" | |
# following awk will find and print the lines with MORE than one matching pattern | |
# (here I grep for "@") | |
$ awk '{n=split($0,c,"@")-1;if (n>1) print $0 }' <filename> |
#!/bin/bash | |
confirm() { | |
echo -n "Continue? (y/n) " | |
read answer | |
case $answer in | |
y|Y|j|J"") return 0 ;; | |
n|N) return 1 ;; | |
*) confirm ;; | |
esac |
#!/bin/bash | |
# Use this script to copy shared (libs) files to Apache/Lighttpd chrooted | |
# jail server. | |
# ---------------------------------------------------------------------------- | |
# Written by nixCraft <http://www.cyberciti.biz/tips/> | |
# (c) 2006 nixCraft under GNU GPL v2.0+ | |
# + Added ld-linux support | |
# + Added error checking support | |
# ------------------------------------------------------------------------------ | |
# See url for usage: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# author: marco @ agate . io | |
# if this helped, donate your LTC here: Lcu3TvhGEfKfPndRMhoWjkSk9dAFXhYrn2 | |
FIREFOXBIN="/cygdrive/c/Program\ Files\ \(x86\)/Mozilla\ Firefox/firefox.exe -new-tab" | |
launchURL() { | |
myURL="$1" | |
faucet_name=$(echo $1 | cut -d\/ -f3) | |
echo "$(date +%H:%M:%S) ~ ${faucet_name}" | |
/cygdrive/c/Program\ Files\ \(x86\)/Mozilla\ Firefox/firefox.exe -new-tab "${myURL}" & |
### add this to .bashrc | |
DEST_EMAIL="MY_SPAM_JAM@gmail.com" | |
TMPCOOKIE="/tmp/cookie.$(date +%y%m%d%H%M%S)" | |
CONNIP=$(echo $SSH_CONNECTION | cut -d " " -f 1) | |
touch ${TMPCOOKIE} | |
if [ -z "$CONNIP" ] | |
then | |
echo "${HOSTNAME}: User $USER just logged in from console" >> ${TMPCOOKIE} | |
echo >> ${TMPCOOKIE} | |
w >> ${TMPCOOKIE} |
#### Set english as default language | |
LANG='en_GB.UTF-8' | |
#### Start ssh-agent on first terminal session | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded |
Please note that this whole manual refers to the version 3.5.11 of Squid. You probably would have to adapt some commands to the version you will actually download.
#!/bin/bash | |
# IP address change logger and notifier | |
# v.201303211157 | |
# http://korovamilky.tumblr.com | |
LOGGER="${HOME}/ip_change.log" | |
TMP_NOTIFY="/tmp/ip_notify.log" | |
HOST=$(hostname) | |
ADMIN_MAIL="admin@example.com" #### #### #### <- CHANGE THIS #### | |
IP=$(curl -s icanhazip.com) |
#!/bin/bash | |
# Filename: boot_prompt.sh | |
# Description: Shows connected interface(s) at boot and related ip address(es) on tty login prompt | |
# Usage: Put it somewhere (ie. /etc/init.d/) and then add its full path entry to /etc/rc.d/rc.local | |
# | |
# Author: marco[dot]agate@gmail[dot]com | |
# Version: 201304051644 | |
DSTFILE="/etc/issue" | |
KEEPLINE=$(head -n 1 ${DSTFILE}) |