View clf-p2browser.sh
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 | |
function p2browser() { | |
pbpaste > /var/tmp/clf-output.html && open /var/tmp/clf-output.html && sleep 3 && rm /var/tmp/clf-output.html | |
} |
View clf-better-ping.sh
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 | |
function ping() { | |
lph=`echo $1 | sed 's#https*://\([^/]*\)/.*#\1#'` | |
/sbin/ping $lph | |
} |
View ez-install.sh
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 | |
# once know as clf-ez-install.sh | |
# install deb package from url | |
# this script was once shamelessly copy-pasted from a gTalk conversation by the awful filipekiss faget, | |
# who uploaded here -> https://gist.github.com/4219057 <- | |
# before I could ever think of do the same. So I made this tribute <3 | |
pkg=$( echo $1 | sed -r 's/^.+\/([^\/]+\.deb)/\1/g' ) | |
wget $1 && dpkg -i $pkg |
View httpd-vhosts.conf
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
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |
View httpd.conf
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
# | |
# Mac OS X / Mac OS X Server | |
# The <IfDefine> blocks segregate server-specific directives | |
# and also directives that only apply when Web Sharing or | |
# server Web Service (as opposed to other services that need Apache) is on. | |
# The launchd plist sets appropriate Define parameters. | |
# Generally, desktop has no vhosts and server does; server has added modules, | |
# custom virtual hosts are only activated when Web Service is on, and | |
# default document root and personal web sites at ~username are only | |
# activated when Web Sharing is on. |
View felclef.zsh-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
# hints got at http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/ | |
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '‚òø' && return | |
# echo '‚óã' |
View felclef.zsh-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
# hints got at http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/ | |
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
# echo '○' |
View within-group-prog-count.sql
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
-- olc: select id_quadro, user_hash from ( select iq.id_quadro, user_hash, if( @prev <> iq.id_quadro, @rownum := 1, @rownum := @rownum+1 ) as g_rank, @prev := iq.id_quadro from r7_inscricoes_quadros iq order by id_quadro, data_cadastro ) sq where g_rank <= 4 | |
-- the sample uses some database wich I have not luvd... yet... | |
select | |
id_quadro, | |
user_hash | |
from | |
( | |
select |
View ellano_links.html
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
<html> | |
<head> | |
<style type="text/css"> | |
a.opt1, a.opt2 | |
{ | |
color:#AAA; | |
} | |
a.opt1, a.opt2, a.opt1:hover, a.opt2:hover | |
{ | |
color:#AAA; |
View ora_sh_t_solver.sql
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
declare | |
entity_count integer := 0; | |
type t_ct_cur is ref cursor; | |
ct_cur t_ct_cur; | |
type t_codmat is table of varchar2(255); | |
blk_codmat t_codmat; |
NewerOlder