This file contains hidden or 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
#!/bin/bash | |
sudo du -ah / 2>/dev/null | sort -rh | head -n 20 |
This file contains hidden or 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
import os from 'os' | |
let ifaces = os.networkInterfaces() | |
let ips = {} | |
// From this thread : https://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js?answertab=active#tab-top | |
Object.keys(ifaces).forEach(function (ifname) { | |
let alias = 0 | |
ifaces[ifname].forEach(function (iface) { | |
if (iface.family !== 'IPv4' || iface.internal !== false) { |
This file contains hidden or 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
#!/bin/bash | |
# CHANGE ME | |
DISTRO_NAME="artful" | |
sudo true | |
# Virtual Box Hypervisor driver | |
sudo add-apt-repository "deb https://download.virtualbox.org/virtualbox/debian ${DISTRO_NAME} contrib" | |
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - |
This snippet shows how to authorize HTML5 history mode used by Javascript frameworks like Angular or VueJS.
There is two simple steps :
- Create the filter
- Register it in your project configuration
Create the file HistoryModeFilter.java
with the following content :