Skip to content

Instantly share code, notes, and snippets.

View mariorez's full-sized avatar

Mario Rezende mariorez

View GitHub Profile
@mariorez
mariorez / shell-faster-delete
Last active December 26, 2015 03:58
A faster way to delete millions of files in a directory
rsync -a --delete /path-to/empty/ /path-to/source/
@mariorez
mariorez / linux find replace
Created January 23, 2014 15:59
linux find replace
sed -i 's/ugly/beautiful/g' /home/user/document.txt
{
"color_scheme": "Packages/Color Scheme - Default/iPlastic.tmTheme",
"draw_white_space": "all",
"expand_tabs_on_save": true,
"font_size": 11.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
Package Control
ExpandTabsOnSave
SideBarEnhancements
SideBarGit
SublimeCodeIntel
SublimeLinter
SyncedSideBar
Twig
# Download the latest Java SE SDK version.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
# Untar the Archive:
tar -xzvf jdk-8-linux-x64.tar.gz
mv jdk1.8.0 /opt
cd /opt/jdk1.8.0
# This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0/bin/java 1
# HINTS
## Add self to the docker group (run docker without sudo)
sudo gpasswd -a myusername docker
## Get container ID
alias dl='docker ps -l -q'
## Get container IP
docker inspect --format='{{ .NetworkSettings.IPAddress }}' `dl`
docker inspect `dl` | grep IPAddress | cut -d '"' -f 4
#!/bin/bash
finishMessage="\033[37;40m Prepare ASSETS was completed! \033[0m\n"
# COMPASS COMPILE
echo "\033[37;40m Run COMPASS:COMPILE (y|n)?: n\033[0m"
read compile
compile=${compile:-n}
if [ "$compile" == "y" ]
then

Keybase proof

I hereby claim:

  • I am mariorez on github.
  • I am mariorez (https://keybase.io/mariorez) on keybase.
  • I have a public key whose fingerprint is 0AC2 0708 9FE2 2A94 F8DC 8B7A FCC5 AD68 453F 0A1A

To claim this, I am signing this object:

[program:tomcat6]
command=/opt/tomcat6-instance/bin/supervisor-wrapper.sh
Disable Touchpad
=======================================
xinput list
xinput set-prop 15 "Device Enabled" 0
Stop screen going black after 10 min
=======================================
Type on terminal: xset s 0 0
Or add this command in: home/username/.profile