Skip to content

Instantly share code, notes, and snippets.

@dz0ny
dz0ny / 99java
Created July 7, 2012 10:23
Install java,flash,mp3,mp4 to Chromium OS
## Setup java
if [ `uname -m` == 'x86_64' ]; then
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/"
else
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib/jvm/java-7-oracle/"
fi
@Gonzales
Gonzales / win_2016_aws_network_fix.ps1
Created April 4, 2018 09:53
aws stock windows server 2016 has a network bug which stops Instance to access metadata server with IP
Add-Content 'c:\script.log' (date)
# This fixes a bug in AWS startup script processing.
# 169.254.169.254 is for metadata service
# 169.254.169.250 is for KmsInstanceVpc1
# 169.254.169.251 is for KmsInstanceVpc2
$ipAddrs = @("169.254.169.254/32", "169.254.169.250/32", "169.254.169.251/32")
$sleepTime = 1