I have some issues to cache my passphrase in Ubuntu. To fix it I change my default gpg binary to gpg2
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
Verifying my Blockstack ID is secured with the address 1GAX1DS5Fv3Y4wJUri8aKe3rzY18my473H https://explorer.blockstack.org/address/1GAX1DS5Fv3Y4wJUri8aKe3rzY18my473H |
I hereby claim:
- I am squiter on github.
- I am squiter (https://keybase.io/squiter) on keybase.
- I have a public key ASDgxPVHnRyB_vm4cU9MOyUgzytWD4tNcvMBCYaLhqgezQo
To claim this, I am signing this object:
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 | |
set -eou pipefail | |
version=8.6.4.1 | |
patchinfo=299124-linux-x86_64-threaded | |
dir=ActiveTcl$version.$patchinfo | |
package=$dir.tar.gz | |
url=http://downloads.activestate.com/ActiveTcl/releases/$version/$package |
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
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This script is for OSX only! ;)
First install terminal-notifier
app:
brew install terminal-notifier
After that, using this awesome scritp with some customizations in your .emacs
.
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
def mod11(number, total) | |
as_string = number.to_s | |
sub = as_string.length | |
value = 0 | |
max = total | |
sub.times do |t| | |
value += as_string[t].to_i * max | |
max = max - 1 | |
end |
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
class Followings < ActiveRecord::Base | |
attr_accessible :user_id, :follower_id | |
belongs_to :user | |
belongs_to :follower, class_name: 'User' | |
belongs_to :following, class_name: 'User', foreign_key: :user_id | |
validates_uniqueness_of :user_id, scope: :follower_id | |
end |
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
<% [:notice, :error, :alert].each do |level| %> | |
<% unless flash[level].blank? %> | |
<div class="alert <%= flash_class(level) %>"> | |
<a class="close" href="#">×</a> | |
<%= content_tag :p, flash[level] %> | |
</div> | |
<% end %> | |
<% end %> |
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
tell application "Adium" | |
set eu to "[email protected]" | |
set gay to text returned of ¬ | |
(display dialog ¬ | |
"Quem é o Gay?" with title ¬ | |
"Putz! Que viadão!" with icon stop ¬ | |
default answer ¬ | |
"" buttons {"Vai…"} ¬ | |
default button 1) | |
tell account eu to set theChat to make new chat with contacts {contact gay} with new chat window |
NewerOlder