Skip to content

Instantly share code, notes, and snippets.

<!--
[The MIT License](http://opensource.org/licenses/MIT)
Copyright © 2025 busa-projects
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@enqack
enqack / deluge-shortcuts.md
Created August 27, 2025 18:37
Deluge Shortcuts

Deluge Shortcuts

All Views

Context Action Shortcut
System Adjust brightness Shift + Learn + turn Horizontal
System Settings menu Shift + Select
System Undo Back
System Redo Shift + Back
System Tempo change turn Tempo
@enqack
enqack / valheim_debian_server_setup.md
Created October 30, 2022 14:19 — forked from mmercedes/valheim_debian_server_setup.md
Guide for creating a dedicated valheim server on debian

recommened you do this from within tmux since the steamcmd utility creates its own repl

Install SteamCMD

taken from here

$ sudo useradd -m steam
$ sudo apt update && sudo apt-get install lib32gcc1 -y
$ sudo su - steam
$ mkdir ~/Steam && cd ~/Steam
$ curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
f, err := os.OpenFile("/tmp/cosmos.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
panic(err)
}
defer f.Close()
fmt.Fprintln(f, "============")
fmt.Fprintln(f, "debug var: ")
package main
import (
"fmt"
"github.com/shopspring/decimal"
)
type account struct {
balance decimal.Decimal
@enqack
enqack / forms.py
Created February 19, 2019 07:41
Django FormSet
from django import forms
from django.forms.models import modelformset_factory
from .models import Setting
class SettingForm(forms.ModelForm):
name = forms.CharField()
value = forms.CharField()
@enqack
enqack / REAME.md
Last active November 7, 2015 23:14
CoreOS - Easy Development/Testing Cluster
@enqack
enqack / thin.sh
Last active August 29, 2015 14:12 — forked from sbeam/thin.sh
#!/bin/bash
### BEGIN INIT INFO
# Provides: thin
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: thin initscript
# Description: thin
### END INIT INFO
@enqack
enqack / rsync_slackware_mirror.sh
Created February 22, 2013 05:46 — forked from breakliu/rsync_slackware_mirror.sh
rsync slackware mirror as you like :)
#!/bin/bash
# Define a valid Slackware Linux Version.
# NOTE: If you want to use Slackware Linux Current,set VERSION to 'current' (VERSION=current).
VERSION=13.37
# Choose the faster one from the sites below and un-comment it.
SOURCE="rsync://rsync.slackware.at/slackware/slackware-$VERSION"
#SOURCE="rsync://ftp.ntua.gr/pub/linux/slackware/slackware-$VERSION"
#SOURCE="rsync://ftp.slackware.com/slackware/slackware-$VERSION"
@enqack
enqack / git-cmds.md
Last active December 11, 2015 20:29

Undo a (1) commit

If you have committed junk but not pushed,

git reset --soft HEAD~1

  • HEAD~1 is a shorthand for the commit before head.
  • Alternatively you can refer to the SHA-1 of the hash you want to reset to.
  • --soft option will delete the commit but it will leave all your changed files.