Skip to content

Instantly share code, notes, and snippets.

View xymor's full-sized avatar

Raphael Miranda xymor

View GitHub Profile
#!/bin/bash
# Expects Ubuntu 16.06 (xenial) and kernel 4.x.
# Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191
set -eux
# Have the user call sudo early so the credentials is valid later on
sudo whoami
sudo apt-get install libssl-dev -y
@xymor
xymor / gvt-mtu.js
Last active September 8, 2018 02:47 — forked from anonymous/gvt-mtu.js
script para mudar mtu do roteador GVT
//acessar 192.168.25.1/save_rg_conf.cgi
var objts = {};
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/MaxMTUSize");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/LowerLayers");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/MaxMTUSize");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/LowerLayers");
@xymor
xymor / es.sh
Last active December 12, 2015 01:38 — forked from kajic/es.sh
cd ~
#sudo apt-get update
#sudo apt-get install curl python-software-properties -y
#sudo apt-get install openjdk-6-jre-headless
curl -L https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz | tar -xz
sudo mv elasticsearch-* /usr/local/share/elasticsearch
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
rm -Rf *servicewrapper*
@xymor
xymor / mountain-lion-brew-setup.markdown
Created August 4, 2012 17:52 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.