Skip to content

Instantly share code, notes, and snippets.

View gist:58693f002acf67c1fd0c5a85e8470c36
Get the required packages before trying to install it:
apt-get install build-essential
apt-get install dkms
apt-get install linux-generic
apt-get install linux-signed-generic
Download driver at, unzip it, chmod 777 and install as root
Now, to make sure it will not fail:
View Virtual box in Ubuntu (for that cases when you need a Winbox)
In Ubuntu 16.04 LTS, after the initial install with
sudo apt install virtualbox virtualbox-guest-additions-iso virtualbox-ext-pack
I also had to:
sudo usermod -a -G vboxusers $USER
Then I could enable USB 2/3 support in the machine settings.
View gist:863246d4f05f1aa86786b59106a943fc
sudo gedit /etc/systemd/system/rc-local.service
Then add the following content to it.
Description=/etc/rc.local Compatibility
ExecStart=/etc/rc.local start
phackwer / gist:5207d76b189794d68fe37401d046b742
Last active Feb 13, 2020
Scroll on non-scrollwheel devices
View gist:5207d76b189794d68fe37401d046b742
Just install mouseemu by:
sudo apt-get install mouseemu
and edit "/etc/default/mouseemu" and add the line:
SCROLL="-scroll 56"
126 is the key scan code for the right super key. you can find other key codes by using showkey in the terminal. now restart mouseemu:
View gist:07d3da53aa33231ed4905c62d0dbee67
gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true
phackwer / gist:ef2819332f9c5a1d7572c7ada1e68b89
Created Dec 11, 2019
SonarQube on Docker and local scanner
View gist:ef2819332f9c5a1d7572c7ada1e68b89
docker run --rm \
-p 9000:9000 \
-v sonarqube_conf:/opt/sonarqube/conf \
-v sonarqube_extensions:/opt/sonarqube/extensions \
-v sonarqube_logs:/opt/sonarqube/logs \
-v sonarqube_data:/opt/sonarqube/data \
View gist:1517484769a4330c9ffc9b8e1e24d1fc
Get a list of branches
for remote in `git branch -r `; do git branch --track $remote; done
Remove merged remote branches
git branch --merged master | grep -v master | cut -d/ -f2- | xargs -n 1 git push --delete origin
Remove merged local branches
phackwer / XGH - en.txt
Created Apr 1, 2019 — forked from banaslee/XGH - en.txt
eXtreme Go-Horse Process
View XGH - en.txt
eXtreme Go Horse (XGH) Process
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).
View AngularJS Scope Debugging in Console
Selecione para inspecionar qq item na tela que esteja no escopo da controller e rode o seguinte comando no console:
var scope = angular.element($0).scope()
Agora vc pode usar a scope e ateh modificar os arrays manualmente
View Ubuntu 18.04 Gnome must have
The pre-installed GNOME Calculator in Ubuntu 18.04 is a snap application which may lack some features provided by the traditional one due to restrictions of snap packages.
Remove the snap application by running
snap remove gnome-calculator
and install the traditional apt one by running
sudo apt install gnome-calculator
You may need to to restart GNOME shell by hitting Alt+F2, then typing r and pressing Enter for it to take effect.