Skip to content

Instantly share code, notes, and snippets.

Tales Mantovani talesmantovani

Block or report user

Report or block talesmantovani

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@talesmantovani
talesmantovani / slackstatus.sh
Created Aug 3, 2017 — forked from samervin/slackstatus.sh
A command line utility for changing your Slack status.
View slackstatus.sh
#!/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=" | $@"
@talesmantovani
talesmantovani / shipping_range_price.csv
Created May 22, 2017
Shipping range prices update 09/05/2017
View shipping_range_price.csv
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
View Mimimitizador
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 / install-redis.sh
Created Nov 8, 2016 — forked from FUT/install-redis.sh
Install Redis on EC2
View install-redis.sh
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)
View install_imagemagick.sh
#!/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 / osx-10.11-setup.md
Created Apr 26, 2016 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup
View osx-10.11-setup.md

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.

You can’t perform that action at this time.