This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name ".DS_Store" -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard f92265e5dc3c82ed14a61e4b4e60688b2525c6c8 | |
git push -f | |
Note that the master branch is PROTECTED against forced pushes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker system prune --all --force --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgutil --pkgs|grep -i com.oracle # Know installed JDKs | |
pkgutil --info com.oracle.jdk8u77 # Know where particular JDK is located (ie: jdk8u77) | |
sudo rm -R /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk # Remove JDK | |
sudo pkgutil --forget com.oracle.jdk8u77 # Remove package | |
pkgutil --pkgs|grep com.oracle # Confirm removal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached some-directory | |
git commit -m 'Remove the now ignored directory "some-directory"' | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
NO!!! | |
GLOBAL_1 = 'pippo'; | |
GLOBAL_2 = 'pluto'; | |
var myFunct = function() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg --list | grep linux-image | |
dpkg --list | grep linux-headers | |
sudo apt-get purge linux-image-3.19.0-{18,20,21,25} | |
sudo apt-get purge linux-headers-3.19.0-{18,20,21,25} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git remote -v | |
git remote rm origin | |
git remote add origin https://[git repo] | |
git push -u origin master | |
git remote -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
namespace Eratostene | |
{ | |
/** | |
* Compute Prime Numbers | |
* | |
* Example: | |
<code> |
NewerOlder