Skip to content

Instantly share code, notes, and snippets.

View Skn0tt's full-sized avatar
🎭

Simon Knott Skn0tt

🎭
View GitHub Profile
@Skn0tt
Skn0tt / anonymise.sh
Last active August 22, 2019 16:24
Anonymise a folder
#!/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"
@Skn0tt
Skn0tt / get-latest-github-release.js
Created July 22, 2018 13:27
Get the latest GitHub Release of a Project
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 / docker-compose.yml
Last active October 17, 2023 18:58
Green Nextcloud Docker-Compose
version: "3.7"
services:
nextcloud:
restart: unless-stopped
image: nextcloud:16.0.6
depends_on:
- minio
- postgres
@Skn0tt
Skn0tt / README.md
Created January 25, 2020 11:15
Java introduction BwInf-Camp 2020

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.