Skip to content

Instantly share code, notes, and snippets.

🦆
working on EntE

Simon Knott Skn0tt

🦆
working on EntE
View GitHub Profile
@Skn0tt
Skn0tt / README.md
Created Jan 25, 2020
Java introduction BwInf-Camp 2020
View README.md

Goals: being able to ...

  • ... write smallish programs with 2 to 3 functions and different control structures
  • ... use one IO operation
  • ... use Eclipse for running your code

Team-Coding

To learn the basics of the syntax, we'll jointly develop FizzBuzz. To explain FizzBuzz, you can at first play it in real life.

@Skn0tt
Skn0tt / docker-compose.yml
Last active Apr 5, 2020
Green Nextcloud Docker-Compose
View docker-compose.yml
version: "3.7"
services:
nextcloud:
restart: unless-stopped
image: nextcloud:16.0.6
depends_on:
- minio
- postgres
@Skn0tt
Skn0tt / get-latest-github-release.js
Created Jul 22, 2018
Get the latest GitHub Release of a Project
View get-latest-github-release.js
const https = require('https');
const getContent = function(host, path) {
return new Promise((resolve, reject) => {
const request = https.get({
headers: {
"User-Agent": "Node"
},
host,
path
@Skn0tt
Skn0tt / anonymise.sh
Last active Aug 22, 2019
Anonymise a folder
View anonymise.sh
#!/bin/bash
echo "Are you sure you want to anonymise this directory?"
select yn in "Yes" "No"; do
case $yn in
Yes )
shopt -s dotglob
for f in * **/* ; do
sudo chown nobody "$f"
sudo touch -t 200001011200 "$f"
You can’t perform that action at this time.