Skip to content

Instantly share code, notes, and snippets.

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

Monsterovich

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
# A pop-up dictionary based on translate-shell and notifications
# Bind this script to a hotkey and select a word to get its dictionary entry.
# https://github.com/soimort/translate-shell
# ' and " are removed
text=$(xsel -o | sed "s/[\"']//g")
path=$(dirname "$0")
output=$(sh ${path}/translate --no-ansi ${text})
@a-c-t-i-n-i-u-m
a-c-t-i-n-i-u-m / freenom.com.ddns.sh
Created July 7, 2015 12:07
Dynamic DNS support shell script for freenom.com
#!/bin/bash
# settings
# Login information of freenom.com
freenom_email="main@address"
freenom_passwd="pswd"
# Open DNS management page in your browser.
# URL vs settings:
# https://my.freenom.com/clientarea.php?managedns={freenom_domain_name}&domainid={freenom_domain_id}
freenom_domain_name="domain.name"
@vreon
vreon / .Xresources
Created February 27, 2011 03:26
molokai color theme for xterm
! Molokai theme
*xterm*background: #101010
*xterm*foreground: #d0d0d0
*xterm*cursorColor: #d0d0d0
*xterm*color0: #101010
*xterm*color1: #960050
*xterm*color2: #66aa11
*xterm*color3: #c47f2c
*xterm*color4: #30309b
*xterm*color5: #7e40a5