Skip to content

Instantly share code, notes, and snippets.

View sunix's full-sized avatar
⌨️
coding ...

Sun S. D. Tan sunix

⌨️
coding ...
View GitHub Profile
@sunix
sunix / sendto
Last active August 29, 2015 14:05
In Nautilus, will open a new email in Thunderbird with selected files as attachments. This script needs to be copied to ~/.gnome2/nautilus-scripts folder. Select the files to be attached, right click, select Scripts>sentto. Using nautilus scripts http://g-scripts.sourceforge.net/.
#!/bin/bash
# Copyright 2014, Sun Seng David TAN <sunix@sunix.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@d11wtq
d11wtq / docker-ssh-forward.bash
Created January 29, 2014 23:32
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
@sunix
sunix / temperature_regulation.sh
Created May 21, 2013 08:10
This script change the CPU governor according to the temperature detected. Useful when your linux laptop is shutting down because the cpu is reaching 100°C. Script attached to: CPU overheats during high usage "throttling <not supported>" https://bugs.launchpad.net/bugs/22336
#!/bin/sh
#
###############################################################################
# Copyright (C) 2005 Francois COJEAN
# Copyleft 2007 Sun Seng David TAN
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
@sunix
sunix / scantofile.sh
Created August 5, 2012 08:49
My Brother brscan scanner S-KEY tool scan to file script. Scan from ADF, convert to PDF and merge PDFs files into a single one.
#! /bin/sh
set +o noclobber
#
# $1 = scanner device
# $2 = friendly name
#
#
# 100,200,300,400,600
#