Skip to content

Instantly share code, notes, and snippets.

View Spijkervet's full-sized avatar

Janne Spijkervet

View GitHub Profile
{
"type": "root",
"id": "root",
"linkId": "",
"color": "auto",
"css": "",
"default": "",
"value": "",
"precision": 2,
"address": "/root",
"""
Description:
Analyzes a path containing Kontakt libraries (nicnt files), and adds corresponding .plist files to the /Library/Preferences folder.
Usage:
python3 add_kontakt_libraries_macos.py [path to libraries]
"""
import sys
#/bin/bash
# On first boot:
# fdisk /dev/sdb # n, p, w
# reboot now
cryptsetup -vy luksFormat /dev/sdb3
cryptsetup luksOpen /dev/sdb3 my_usb
mkfs.ext4 -L persistence /dev/mapper/my_usb
e2label /dev/mapper/my_usb persistence
mkdir -p /mnt/my_usb
#!/bin/bash
CWDIR=$1
echo 'Restoring $CWDIR'
cd $CWDIR
mkdir current_sys.bak
cp /etc/passwd /etc/shadow /etc/group /etc/gshadow current_sys.bak
cat passwd.mig >> /etc/passwd
cat group.mig >> /etc/group
#!/bin/bash
CWDIR=$1
mkdir $CWDIR
echo 'Backing up to $CWDIR'
cd $CWDIR
export UGIDLIMIT=500
awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/passwd > $CWDIR/passwd.mig
awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/group > $CWDIR/group.mig
#!/bin/bash
#SBATCH --job-name=pytorch_1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=3
#SBATCH --ntasks-per-node=1
#SBATCH --time=1:00:00
#SBATCH --mem=60000M
#SBATCH --partition=gpu_shared_course
#SBATCH --gres=gpu:1
This file has been truncated, but you can view the full file.
0 0 Q 8 0 7 103 51 92 43 12 73 69 27 105
0 36 Q 174 0 1625 1627 1623 1626 1624 1622 1619 1621 1620 1618
0 50 Q 227 0 2094 2091 2087 2089 2093 2088 2090 2092 2095 2086
0 515 Q 174 0 1625 1627 1623 1626 1624 1622 1619 1621 1620 1618
0 524 Q 1974 0 17562 1627 1626 1623 2091 17559 17563 17558 17561 17560
0 527 C 17562
0 528 C 1627
0 529 C 1626
1 0 Q 9 0 13 70 66 94 50 104 29 21 89 85
1 20 C 104
@Spijkervet
Spijkervet / Dockerfile
Created May 29, 2018 13:05 — forked from prateekgogia/Dockerfile
Dockerfile to build 32 bit Docker container, for 32 bit docker daemon dev version 17.04.0-ce
# This file describes the standard way to build Docker, using docker
#
# Usage:
#
# # Assemble the full dev environment. This is slow the first time.
# docker build -t docker .
#
# # Mount your source in an interactive container for quick testing:
# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash
#
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================================================-===========================================================-============-=============================================================================================================================================================================================================================================================================
ii a11y-profile-manager-indicator 0.1.10-0ubuntu3 amd64 Accessibility Profile Manager - Unity desktop indicator
ii account-plugin-facebook 0.12+16.04.20160126-0ubuntu1
% Janne Spijkervet, Prolog knowledge base.
% Latitude / Longitudes of all cities in The Netherlands. Multiple entries per city are postal code areas.
longlat(amsterdam,52.3362429,4.8694444).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).
longlat(amsterdam,52.36424,4.883358).