Skip to content

Instantly share code, notes, and snippets.

View humbertodias's full-sized avatar

Humberto Dias humbertodias

View GitHub Profile
@humbertodias
humbertodias / gist:adfe88157ec20d635b7f5ce45f18b9f7
Created October 21, 2018 12:02
Install zsh + ohmyzsh on Ubuntu
# Dep
sudo apt install fonts-powerline zsh
# OhMyZsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Change default shell
sudo usermod --shell /bin/zsh $USER
or
chsh -s /bin/zsh $USER
@humbertodias
humbertodias / sonarqube-mysql-docker-compose.yml
Last active September 19, 2018 12:18 — forked from batmat/sonarqube-mysql-docker-compose.yml
Working SonarQube + Mysql Dead Simple Docker Compose file
sonarqube:
image: sonarqube
ports:
- "9000:9000"
- "3306:3306"
environment:
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
- SONARQUBE_JDBC_URL=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
# Create folder
mkdir repository-folder && cd repository-folder
# Initialize the git repository and add master and pull from bundle
git init
git pull file.bundle master
@humbertodias
humbertodias / gist:dd565a20d8794dd58e14a913b22ae488
Created May 27, 2018 21:49
Converting mono audio to stereo
#44100 Sample rate
#2 Channels
ffmpeg -i $input.mp3 -ar 44100 -ac 2 $output.mp3
@humbertodias
humbertodias / chrome-flags-webgl.png
Last active May 27, 2018 13:20
Enabling WegGL on Chrome
chrome-flags-webgl.png
wine $game.exe -force-d3d9
@humbertodias
humbertodias / oracle-12c-fix-creating-user.sh
Created April 4, 2018 13:56
Oracle 12c fix legacy script
-- fix for oracle 12c
alter session set "_ORACLE_SCRIPT"=true;
-- USER SQL
CREATE USER crudtest IDENTIFIED BY "crudtest" ;
-- QUOTAS
-- ROLES
GRANT "DBA" TO crudtest ;
@humbertodias
humbertodias / webex-ubuntu.md
Created March 26, 2018 12:46 — forked from mshkrebtan/webex-ubuntu.md
Run Cisco Webex on 64-bit Ubuntu 16.04

Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

Enable support for 32-bit executables

Add the i386 architecture to the list of dpkg architectures :

sudo dpkg --add-architecture i386

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@humbertodias
humbertodias / docker-tips.sh
Created March 10, 2018 15:30
Docker showing ip of all containers
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)