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:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota\cfg\autoexec.cfg | |
// enable console | |
con_enable "1" | |
// right click to deny creeps | |
dota_force_right_click_attack "1" | |
// disable auto attacks | |
dota_player_units_auto_attack "0" |
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
#!/bin/bash | |
# | |
# random-wallpaper.sh | |
# Call this often enough to get a new wallpaper every day. | |
# Where the wallpapers are located | |
WALLPAPERS=~/pictures/wallpapers/r-wallpapers | |
# Where the last change date will be saved | |
REGISTRY=~/.random-wallpaper |
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
#!/bin/bash | |
# Stupidly simple script to fix the lockscreen option in ElementaryOS Freya. | |
# It listens to a dbus event and calls `dm-tool lock`. | |
# | |
# Run it in the background and lock your screen whenever you want! | |
# | |
# $ freya-lock-fix.sh & | |
# $ disown | |
# -> Lock screen | |
# |
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
----------------------------------------------------------------------------- | |
-- | | |
-- Copyright : (c) Dirley Rodrigues 2012 | |
-- License : BSD3-style (see LICENSE) | |
-- | |
-- Maintainer : [email protected] | |
-- Stability : experimental | |
-- | |
-- This module specifies my personal configuration values for xmonad | |
-- and declares it's main function. |
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
#!/usr/bin/env python | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import contextlib | |
import subprocess | |
import tempfile | |
import urllib2 | |
import os.path | |
import bs4 |
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
#!/bin/bash | |
# TODO | |
# - Automatically fix the "Unknown display" problem by editing grub defaults | |
# like described here: http://askubuntu.com/questions/398903/unknown-display-besides-laptop-built-in-display-old-question-but-with-no-answer | |
## | |
## Essential stuff | |
## | |
sudo apt-get install -y build-essential aria2 git mercurial subversion \ |
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
/** | |
* Versões: | |
* ... um bocado de versões bugadas ou incompletas | |
* 1. uma versão "funcional" | |
* 2. removidas as chamadas a fflush(stdin), que eram inúteis, como é explicado dado aqui [1] | |
* | |
* [1] http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
/** | |
* Uma função strpos feita do zero. | |
*/ | |
#include <stdio.h> | |
/** | |
* Procura a string b na string a. | |
* | |
* Retorna -1 se `b` não for encontrada em `a`, ou o índice da | |
* primeira ocorrência de b em a. |
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
/** | |
* jQuery UI Tabs Closable | |
* http://anohan.wordpress.com/jquery-ui-tabs-closable | |
* | |
* Copyright (c) 2010, Dirley Rodrigues | |
* | |
* Licensed under the New BSD License | |
* See: http://www.opensource.org/licenses/bsd-license.php | |
* | |
* Requires jQuery UI 1.4.2 |