Skip to content

Instantly share code, notes, and snippets.

@muriloazevedo
muriloazevedo / wp-shell-install.sh
Created August 24, 2017 18:12 — forked from dongilbert/wp-shell-install.sh
Auto Install Latest WordPress from Shell
#!/bin/bash
# Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert
# Disclaimer: It might not bloody work
# Disclaimer 2: I'm not responsible for any screwups ... :)
# DB Variables
echo "MySQL Host:"
read mysqlhost
export mysqlhost
@muriloazevedo
muriloazevedo / update_enconding.sql
Created October 2, 2015 13:58 — forked from anonymous/update_enconding.sql
Atualiza o encoding de latin1 para uft8 do campo "name", na tabela users.
SELECT CONVERT(CONVERT(name USING BINARY) USING latin1) AS latin1,
CONVERT(CONVERT(name USING BINARY) USING utf8) AS utf8
FROM users
WHERE CONVERT(name USING BINARY) RLIKE CONCAT('[', UNHEX('80'), '-', UNHEX('FF'), ']')
@muriloazevedo
muriloazevedo / verify_cert.sh
Created May 22, 2015 12:28 — forked from anonymous/verify_cert.sh
verify ssl certificate for domain
echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -dates
#!/bin/bash
# use imagemagick to merge all images in a folder to produce a spritesheet
# use conver -append for vertical stacking and
# convert +append for horizontal
if [ $# -gt 0 ]
then
if [ $2 ]
# downgrade to php5.4 first
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
# install ajenti
wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-ubuntu.sh | sudo sh
@muriloazevedo
muriloazevedo / gist:e4a5d5576f109c625cbb
Created September 13, 2014 23:28 — forked from farandal/gist:5923317
Config for nginx work with thumbs
#Attention!, this scripts needs a modified version of timthumb you'll find in my git account.
#Francisco Aranda, Developer, Software Architect and Enterpreneur, Chile.
#http://farandal.com
#http://www.git.com/farandal
location ~ /thumb/.*\.(png|jpg)$ {
#set $domain yourdomain.com; # Change this to your site's domain name, you may or not need to uncomment this.
set $root_fcgi /home/user/public_html/yourdomain.com/public; # Change this to the public root folder of your site
set $root_cache $root_fcgi/thumb; # Change this to a folder in which to cache the minified files
#include <Servo.h>
Servo esc1;
Servo esc2;
Servo esc3;
Servo esc4;
int speedvalue;
int arm = 1000;
int steady = 300;