Skip to content

Instantly share code, notes, and snippets.

@danielmai
danielmai / Moss-README.rst
Last active March 3, 2024 11:16
Some words on getting started with Moss.

Checking Plagiarism with Moss

Moss (Measure of Software Similarity) is a service that is used to check for plagiarism with programming assignments.

Getting Started with Moss

Moss is simply a command-line script that sends the program files to a server. You

kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@codediodeio
codediodeio / database.rules.json
Last active March 24, 2026 17:32
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@jakobii
jakobii / DockerMinecraftServerSetup.md
Last active August 12, 2025 08:00
Minecraft Server with Docker

Running a Minecraft Server with Docker on Ubuntu

Managing your Mincraft server with docker is a little bit nicer than just using the old "screen -r Mincraft" trick. docker can do snaphoting and auto restarting, and will allow you to think of the Mincraft server as a service, not just a java file that is being executed. Heres how I built mine. You should not have to edit the docker files. Just make sure you replace minecraft jar file version inside the code blocks when specified.

obviosly the only difference if your not using Ubuntu is the installation of java and the installation of docker

how to build it

Install all the things

@a-gu
a-gu / tasks_matlab.json
Last active January 29, 2019 23:57
Visual Studio Code "tasks.json" to non-interactively run MATLAB files in the Terminal
{
"version": "2.0.0",
"tasks": [
{
"label": "Run File in MATLAB",
"type": "shell",
"command": "matlab",
"group": {
"kind": "test",
"isDefault": true
@a-gu
a-gu / fio.sh
Last active October 12, 2019 02:49
Upload a file to File.io using a bash function in "~/.bash_functions"
#!/usr/bin/env bash
# Upload file to File.io (optional expiration)
# fio file_name [expiration]
fio () {
if [[ "$#" -ge "2" ]]; then
curl -F "file=@$1" "https://file.io/?expires=$2";
elif [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "Uploads a file to file.io"
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active April 16, 2026 13:22
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@EnigmaCurry
EnigmaCurry / README.md
Last active February 25, 2024 02:33
Proxmox install log on bare metal

Proxmox install log on Bare Metal

Assumptions

  • A single node proxmox v5.4-3 install
  • Only one public IP address
  • LXC/KVM for "pet" (development) containers
  • Portainer / Docker for less stateful more automated use-cases
  • My server's FQDN is stardust.gtown.lan.rymcg.tech - use your own domain name.
@Alexey-Tsarev
Alexey-Tsarev / zfs_install.sh
Last active May 23, 2025 03:10
ZFS 0.8 at Raspberry Pi
#!/usr/bin/env sh
set -e
set -x
CUR_PWD="$(pwd)"
cd "$(dirname $0)"
if [ ! -d zfs ]; then
# https://github.com/zfsonlinux/zfs/wiki/Building-ZFS