Skip to content

Instantly share code, notes, and snippets.

View samuelpismel's full-sized avatar

Samuel Gavassi Pismel samuelpismel

View GitHub Profile
@samuelpismel
samuelpismel / cookie-clicker-auto-click-cheats.js
Last active April 19, 2017 14:43
Auto-clicker and golden coockie cheats to Cookie Clicker Game - http://orteil.dashnet.org/cookieclicker
@samuelpismel
samuelpismel / mysql-convert-charset.sh
Created November 9, 2015 13:53
Shell script to change and convert mysql databases charset and collate.
#!/bin/bash
database='database'
user='user'
pass='pass'
charset='utf8mb4'
collate='utf8mb4_unicode_ci'
echo "Changing charset of database: $database"
@samuelpismel
samuelpismel / mysql-dump.sh
Created November 6, 2015 17:24
gziped mysql dumps with timestamp on filename
#!/bin/bash
database='my_database_name'
username='database_username'
password='database_password'
mysqldump $database -u $username -p"$password" | gzip > "dumps/$database-$(date +%F--%H-%m-%S).sql.gz"
@samuelpismel
samuelpismel / .travis.install-mysql-5.7.sh
Last active August 29, 2015 14:27 — forked from BenMorel/.travis.install-mysql-5.7.sh
Install MySQL 5.7 on Travis-CI
sudo apt-get remove --purge "^mysql.*"
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql
sudo rm -rf /var/log/mysql
echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
sudo apt-get update -q
sudo apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mysql-server
@samuelpismel
samuelpismel / pt-br.php
Created July 25, 2013 03:33
Tradução Arrowchat 1.6.11 pt-br (português brasileiro)
<?php
/*
|| #################################################################### ||
|| # ArrowChat # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2010-2012 ArrowSuites LLC. All Rights Reserved. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.arrowchat.com | http://www.arrowchat.com/license/ # ||
@samuelpismel
samuelpismel / db_truncate.rake
Last active December 14, 2015 09:39
Truncates all tables in your rails database except the schema_migrations table. how to use: rake db:truncate
# how to use:
# rake db:truncate
#
# Truncates all tables in your rails database except the schema_migrations table.
# This is a destructive rake task, it will delete all records in your database,
# so don't use it if you don't know what you are doing and be careful when using it.
# I recommend use it just when you have a really good seed.rb in your project
# as a easy way to clean the database and then seed the database with rake db:seed command.
# Como usar:
@samuelpismel
samuelpismel / kaminari.pt-BR.yml
Last active March 12, 2020 14:21
Tradução do gem kaminari 0.14.1 para português brasileiro (pt-BR)
#encoding: utf-8
pt-BR:
views:
pagination:
first: "&laquo; Primeira"
last: "Última &raquo;"
previous: "&lsaquo; Anterior"
next: "Próxima &rsaquo;"
truncate: "&hellip;"
@samuelpismel
samuelpismel / devise.pt-BR.yml
Created February 15, 2013 12:02
pt-BR translation for devise 2.2.3
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
pt-BR:
devise:
confirmations:
confirmed: 'Sua conta foi confirmada com sucesso. Você está logado.'
send_instructions: 'Dentro de minutos você receberá um e-mail com instruções para confirmar a sua conta.'
send_paranoid_instructions: 'Caso seu e-mail exista em nossa base, você receberá um e-mail em poucos minutos com instruções sobre como confirmar sua conta.'
failure:
already_authenticated: 'Você já está logado.'
@samuelpismel
samuelpismel / rails_admin.pt-BR.yml
Last active October 10, 2015 21:08 — forked from fernandomm/rails_admin.pt-BR.yml
Portuguese (pt-BR) translation for gem RailsAdmin 0.4.4
pt-BR:
admin:
home:
name: "Início"
pagination:
previous: "&laquo; Anterior"
next: "Próximo &raquo;"
truncate: "…"
misc:
filter_date_format: "dd/mm/yy"