Skip to content

Instantly share code, notes, and snippets.

View lichti's full-sized avatar
👨‍💻
🏊🏻🚴🏻🏃🏻

Gustavo Lichti lichti

👨‍💻
🏊🏻🚴🏻🏃🏻
View GitHub Profile
@lichti
lichti / parallel_import.rb
Created November 3, 2015 16:44
MySQL LOAD DATA parallel import
require 'thread'
require 'fileutils'
procs=8
host=""
user=""
pass=""
db=""
path=""
- Configurar o nome do sistema (hostname)
sudo hostnamectl set-hostname –static "lichti-note"
- Atualizando
sudo dnf update
- Instalar Fedy
sudo bash -c 'su -c "curl http://folkswithhats.org/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"'
- Gnome Tweak Tool
@lichti
lichti / gnome3-fix-hidden-files.sh
Created November 11, 2015 02:03
Disable show hidden files in nautilus on gnome3
#!/bin/bash
gsettings set org.gtk.Settings.FileChooser show-hidden false
@lichti
lichti / s3.sh
Created November 13, 2015 20:56 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@lichti
lichti / MySQL-RAM-Usage.md
Last active November 18, 2015 15:49
MySQL RAM Usage

MySQL RAM Usage:

server_buffers + total_per_thread_buffers * max_connections
server_buffers = key_buffer_size + innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + query_cache_size
@lichti
lichti / rsync.md
Last active November 19, 2015 01:33
alias rsync-copy="rsync -avz --progress -h"
alias rsync-move="rsync -avz --progress -h --remove-source-files"
alias rsync-update="rsync -avzu --progress -h"
alias rsync-synchronize="rsync -avzu --delete --progress -h"