This file contains hidden or 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
removerAcentos = (texto) -> | |
mapa = | |
a : /[\xE0-\xE6]/g | |
e : /[\xE8-\xEB]/g | |
i : /[\xEC-\xEF]/g | |
o : /[\xF2-\xF6]/g | |
u : /[\xF9-\xFC]/g | |
c : /\xE7/g | |
n : /\xF1/g |
user@LOCAL:~> ssh-keygen -t rsa
user@LOCAL:~> ssh -vp 2222 user@REMOTE mkdir -p .ssh
user@LOCAL:~> cat .ssh/id_rsa.pub | ssh -vp 2222 user@REMOTE 'cat >> .ssh/authorized_keys'
user@LOCAL:~> ssh -vp 2222 user@REMOTE
user@LOCAL:~> ssh-add id_rsa
This file contains hidden or 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
sudo /usr/sbin/./rcapache2 start; sudo /etc/init.d/mysql start |
This file contains hidden or 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
<!doctype html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hangout</title> | |
</head> | |
<body> | |
<section class="previsao-do-tempo"> | |
<section class="elementos"> | |
<section class="icone"></section> |
This file contains hidden or 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
mkdir sprites-final; montage * \ | |
-monitor \ | |
-geometry +10+10 \ | |
-background none \ | |
-mode concatenate \ | |
sprites-final/sprite.png |
This file contains hidden or 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/python | |
# encoding: utf-8 | |
import urllib | |
def convert_png_to_datauri(image_file): | |
image_encoded = urllib.quote(open(image_file, 'rb').read().encode('base64')) | |
return 'data:image/png;base64,' + image_encoded | |
if __name__ == '__main__': |
This file contains hidden or 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
http://syncmaster-b1930n.drivers.informer.com/download/18147 |
This file contains hidden or 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
-- MySQL Script generated by MySQL Workbench | |
-- 04/27/14 00:32:13 | |
-- Model: New Model Version: 1.0 | |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; | |
-- ----------------------------------------------------- | |
-- Schema mydb | |
-- ----------------------------------------------------- |