Skip to content

Instantly share code, notes, and snippets.

View korovamilk's full-sized avatar
🏠
Working from home

Marco Agate korovamilk

🏠
Working from home
View GitHub Profile
@korovamilk
korovamilk / Preferences.sublime-settings
Created December 3, 2013 08:17
Sublime Text 3 settings
{
"auto_complete": false,
"caret_style": "solid",
"color_scheme": "Packages/Theme - Nil/Tubnil Bright.tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"*.pid",
#!/bin/bash
#
# Send by e-mail new entries in the Bash history of all users.
#
# usage: mail-history <email> <subject>
#
TMPFILE=`tempfile 2>/dev/null` || TMPFILE=`mktemp` || exit 1
declare -i CHANGES
CHANGES=0
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<h1>Hi there,<br>
here's your IP Address:
<font color="red">
#!/bin/bash
# find-out-what-is-using-your-swap.sh
# -- Get current swap usage for all running processes
# --
# -- rev.0.3, 2012-09-03, Jan Smid - alignment and intendation, sorting
# -- rev.0.2, 2012-08-09, Mikko Rantalainen - pipe the output to "sort -nk3" to get sorted output
# -- rev.0.1, 2011-05-27, Erik Ljungstrom - initial version
#!/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})
#!/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
# yum3.sh
# v201303191415
# https://blog.agate.pw
# [Tested on Fedora 18 x86_64 - yum-3.4.3-51 + python-2.7.3-13 + python3-3.3.0-1]
# yum refuses to deal with python3 as default python version
# here’s a simple and dirt python version switcher
# just copy to /bin/ and launch from your path as you would as usual