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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | 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
drush user-password someuser --password="gr3@tP@$s" |
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
<VirtualHost *:80> | |
ServerAdmin user@host | |
ServerName some.hostname.com | |
DocumentRoot /path/to/root/dir | |
<Directory /path/to/root/dir> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
</Directory> |
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
CREATE DATABASE db_name; | |
GRANT USAGE ON *.* TO 'db_user'@'hostname' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON db_name.* TO 'db_user'@'hostname'; | |
# Shorter | |
create database db_name; | |
grant all on db_name.* to 'db_user' identified by 'password'; | |
flush privileges; |
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
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteCond %{http_host} ^original-url.com [nc] | |
RewriteRule ^(.*)$ http://www.where-you-want-it-to-go.com/ [r=302,nc] | |
# Redirect domain and all subdomains | |
RewriteCond %{http_host} ^(.*)original-domain\.com [nc] | |
RewriteRule ^(.*)$ http://www.new-domain.com [r=302,nc] |
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
#button > .background { | |
position: absolute; | |
-webkit-animation: pulseCircle 2s ease-out infinite; | |
-moz-animation: pulseCircle 2s ease-out infinite; | |
-o-animation: pulseCircle 2s ease-out infinite; | |
-ms-animation: pulseCircle 2s ease-out infinite; | |
} |
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 | |
function nfact($n) { | |
if ($n == 0) { | |
return 1; | |
} | |
else { | |
return $n * nfact($n - 1); | |
} | |
} |
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
{ | |
"response" : { | |
"responseNum" : 3, | |
"timeRange" : { | |
"begin" : "2012-01-10", | |
"end" : "2012-03-15" | |
}, | |
"importanceTotal" : 1600, // the sum of all the words of all the bills in all the topics | |
"totalSpeakers" : 28, | |
"topics" : { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDugg4TSLrPbeSCCmNmlV8n7Q8zAb4ZNjyrFKWPS1NTUHvzjCr6uNiIMFNRzM/wANR/Ujl814vb7FjFkWXU9FlLu9KOCsrKqdN4Bg6Q64U+YDir43yoF0EXZ4K3X752Lag6JkAC16GMvKeCc/wl6pPnAx3bdwcK/fWTA7dmjU5fuGAahFNJXzkXmrPOGXAzHZNZfOK9g7FOb2oF0KLEcCT9R6NkCfWGTXcVpEXYKZzGFcxMdi3zbVucTiI0t22x9nYxn2Wchy75DNEaYWD4yoIOwaeEWNgjMcA7UDdITpNh78uuqtGCqEmxdBcUXkSp9tbGMyqjthq1yg8qq6BqwcaL peter@peter-thinkpad-x220 |
OlderNewer