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
# idea.sh did not see env variables from /etc/profile . Use $HOME/.profile instead | |
export ANT_HOME=/opt/dev/ant | |
export MAVEN_HOME=/opt/dev/maven | |
export MAVEN_HOME2=/opt/dev/maven2 | |
export MAVEN_HOME3=/opt/dev/maven3 | |
export JAVA_HOME6=/opt/dev/java6 | |
export JAVA_HOME7=/opt/dev/java7 | |
export JAVA_HOME8=/opt/dev/java8 | |
export JAVA_HOME9=/opt/dev/java9 | |
export JAVA_HOME10=/opt/dev/java10 |
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
# Spotify NoAds | |
127.0.0.1 adclick.g.doublecklick.net | |
127.0.0.1 adeventtracker.spotify.com | |
127.0.0.1 ads-fa.spotify.com | |
127.0.0.1 analytics.spotify.com | |
127.0.0.1 audio2.spotify.com | |
127.0.0.1 b.scorecardresearch.com | |
127.0.0.1 bounceexchange.com | |
127.0.0.1 bs.serving-sys.com | |
127.0.0.1 content.bitsontherun.com |
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
# inside conf folder of tomcat9 | |
cd $TOMCAT_HOME9/conf | |
# Common for the APR connector and conventional connectors | |
openssl req -newkey rsa:2048 -nodes -keyout tomcat.key -x509 -days 365 -out tomcat.crt | |
# Not useful for the APR connector | |
openssl pkcs12 -inkey tomcat.key -in tomcat.crt -export -out tomcat.pfx |
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 . -type f | sed -n 's/..*\.//p' | sort | uniq -c |
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
How can I flush the DNS on Ubuntu? | |
sudo rm -f /etc/resolv.conf | |
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf | |
reboot | |
# Source | |
https://askubuntu.com/questions/974477/systemds-implementation-of-dns-is-not-resolving-names |
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
ovftool "c:\path\to\original_vm.vmx" "c:\path\to\export.ovf" | |
# https://www.maketecheasier.com/convert-virtual-machines-vmware-virtualbox/ |
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
# tunnel online | |
ngrok tcp 3306 | |
# connection | |
user=root | |
pass=techne | |
host=0.tcp.ngrok.io | |
port=16799 | |
mysql -u$user -h$host -P$port -p$pass |
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
# clean brew cache | |
brew cleanup -s |
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
# QEmu | |
brew install qemu | |
# Home for out tests | |
mkdir ~/arm-emu | |
cd ~/arm-emu | |
# Download initrd and kernel | |
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/initrd.gz |
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
# Start PostFix | |
sudo launchctl start org.postfix.master | |
# Send | |
mail -s testing your_local_user@gmail.com | |
# Check email | |