Skip to content

Instantly share code, notes, and snippets.

View talesmantovani's full-sized avatar

Tales Mantovani talesmantovani

View GitHub Profile
@talesmantovani
talesmantovani / osx-10.11-setup.md
Created April 26, 2016 01:53 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

#!/usr/bin/env bash
#
# Install:
# curl -L https://gist.githubusercontent.com/lemanchester/260341aedc56cec082fb/raw/d74c358f5d6bbb7f3202a9ead5b450e93c8d8011/install_imagemagick.sh | bash
#
echo "*****************************************"
echo " Installing ImageMagick on Amazon Linux AMI "
echo "*****************************************"
echo "*"
echo "*"
@talesmantovani
talesmantovani / install-redis.sh
Created November 8, 2016 19:08 — forked from FUT/install-redis.sh
Install Redis on EC2
1. Install Linux updates, set time zones, followed by GCC and Make
sudo yum -y update
sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \
/etc/localtime
sudo yum -y install gcc make
2. Download, Untar and Make Redis 2.8 (check here http://redis.io/download)
class Mimimitizador < Struct.new :frase
def mimimi
frase.gsub(/['ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó']/, "i")
end
def mememe
url_template = "https://memegen.link/custom/#{frase}/#{mimimi}.jpg?alt=https://i.imgur.com/UvvvAJP.jpg&font=impact"
end
@talesmantovani
talesmantovani / shipping_range_price.csv
Created May 22, 2017 21:26
Shipping range prices update 09/05/2017
range weight price_cents shipping_method
E1 0.5 1185 PAC
E1 1 1269 PAC
E1 0.5 1329 SEDEX
E1 1.5 1337 PAC
E1 2 1337 PAC
E1 1 1482 SEDEX
E1 3 1598 PAC
E1 1.5 1635 SEDEX
E1 2 1635 SEDEX
@talesmantovani
talesmantovani / README.md
Created July 27, 2017 04:08 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@talesmantovani
talesmantovani / slackstatus.sh
Created August 3, 2017 19:24
A command line utility for changing your Slack status.
#!/bin/bash
slacktoken=INSERT_SLACK_TOKEN_HERE
apiurl="https://slack.com/api/users.profile.set?token="$slacktoken"&profile="
lastname="LAST_NAME_HERE"
if [ $# -eq 0 ]
then
status=""
else
status=" | $@"