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
;; Disable automatic cutting and pasting to the clipboard. | |
;; This causes noticeable delays over slow network links. | |
;; The function `insert-clipboard-contents' and the function | |
;; `set-clipboard-contents' let me do this explicitly. | |
(setq interprogram-cut-function nil) | |
(setq interprogram-paste-function nil) | |
(defun get-clipboard-contents-as-string () | |
"Return the value of the clipboard contents as a string." | |
(let ((x-select-enable-clipboard t)) |
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
;Add ~/.emacs.d/lisp to load-path | |
(add-to-list 'load-path "/usr/share/emacs/24.1.50/lisp") | |
(add-to-list 'load-path "~/.emacs.d/lisp") | |
;;==================================================================================== | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
;;==================================================================================== | |
;;Setup color theme |
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
c | |
log-level=error | |
m3 | |
max-connection-per-server=16 | |
max-file-not-found=5 | |
min-split-size=1M | |
remote-time=true | |
summary-interval=60 | |
t5 |
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
flashgot | |
AD Block Plus (Blocks ads!) | |
HTTPS EVERYWHERE (from eff.org "Electronic frontier foundation") | |
Foxy Proxy (useful tool to change proxy!) -conflict with autoproxy- | |
autoproxy | |
Firebug (Additional tools for web developers! REALLY handy) -Realy??? for normal user?- | |
NoScript(Block javascripts everywhere until you make an exception for it!) | |
DownThemAll (Downloader!) | |
Easy YouTube Video Downloader | |
DownloadHelper |
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
DOWNLOAD() { | |
rand="$RANDOM `date`" | |
pipe="/tmp/pipe.`echo '$rand' | md5sum | tr -d ' -'`" | |
mkfifo $pipe | |
wget -c $1 2>&1 | while read data;do | |
if [ "`echo $data | grep '^Length:'`" ]; then | |
total_size=`echo $data | grep "^Length:" | sed 's/.*\((.*)\).*/\1/' | tr -d '()'` | |
fi | |
if [ "`echo $data | grep '[0-9]*%' `" ];then | |
percent=`echo $data | grep -o "[0-9]*%" | tr -d '%'` |
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.privileged: proxy | |
# when running as usual, it will use the unprivileged userid of: | |
user.notprivileged: nobody | |
logoutput: stderr | |
#logoutput: syslog | |
#the above line will send any logs to /var/log/syslog instead to a terminal | |
internal: eth0 port = 1\9090 |
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
<?php | |
date_default_timezone_set('GMT'); | |
//1- file we want to serve : | |
$data_file = "/home/f0rud/Aalto Talk with Linus Torvalds [Full-length].mp4"; | |
$data_size = filesize($data_file); //Size is not zero base | |
$mime = 'application/otect-stream'; //Mime type of file. to begin download its better to use this. | |
$filename = basename($data_file); //Name of file, no path included |
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
# Generated by iptables-save v1.4.10 on Sun Mar 27 14:58:52 2011 | |
*filter | |
:INPUT ACCEPT [2074481:2388158591] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [1936543:146051200] | |
COMMIT | |
# Completed on Sun Mar 27 14:58:52 2011 | |
# Generated by iptables-save v1.4.10 on Sun Mar 27 14:58:52 2011 | |
*nat | |
:PREROUTING ACCEPT [4440:528768] |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
!! drop in Solarized colorscheme for Xresources | |
!! | |
!! ## Installation | |
!! 1) Write to $HOME/.Xresources | |
!! 2) If not using Xsession, you must add the line `xrdb -merge ~/.Xresources` | |
!! to `.xinitrc`. See http://manpages.ubuntu.com/Xsession for more details. | |
!! | |
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB | |
!!--------- ------- ---- ------- ----------- ---------- ----------- ----------- | |
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 |
OlderNewer