- Install
oracle-jdk11-installer
- Pick version: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
- Download .tar.gz file:
wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.12<<<truncated>>>.tar.gz
- Move .tar.gz to installer folder: sudo mv jdk-11.0.12_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
- Run installer (uwith sudo perm.):
apt install oracle-jdk11-installer
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
def bin_to_int(bin_val): | |
""" | |
We draaien het binaire getal (string) om, zodat we van het | |
grootste naar kleinste exponent kunnen werken. We kunnen daardoor | |
van de eerste index naar de laatste index itereren en bij elke "1" | |
de waarde optellen bij het subtotaal. | |
""" | |
bin_val = bin_val[::-1] | |
https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools
https://docs.microsoft.com/en-us/azure/aks/virtual-nodes-portal
https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools
https://docs.microsoft.com/en-us/azure/aks/kubernetes-service-principal
https://docs.microsoft.com/en-us/azure/aks/use-managed-identity
https://docs.microsoft.com/en-us/azure/aks/azure-ad-integration-cli
https://docs.microsoft.com/en-us/azure/aks/managed-aad
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os/exec" | |
) | |
func main() { | |
binary, lookErr := exec.LookPath("bash") |
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
package main | |
import ( | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
"strings" | |
) | |
func visit(find string, replace string) filepath.WalkFunc { |
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
<?php | |
class A { | |
public $val; | |
} | |
class B { | |
public $val; | |
} |
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
# Remove all non-running containers: | |
`docker rm $(sort <(docker ps -q) <(docker ps -aq) | uniq -u)` |
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 | |
# Replace variables $ENV{<environment varname>} | |
# (optional: $ENV{<environment varname>??<default value>} | |
# ---- | |
function ReplaceEnvironmentVariable() { | |
# - Parse environment variable placeholders. | |
# - The format should be $ENV{***} where *** should match |
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
curl -s https://api.github.com/users/jobapis/repos?per_page=200 | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
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
function php_exists() { | |
if ! [ -x "$(command -v php)" ]; then | |
echo 'b'; | |
return 0; | |
fi | |
echo 'a'; | |
return 1; | |
} |
NewerOlder