Skip to content

Instantly share code, notes, and snippets.

@imatasic
imatasic / deb11vaultwardenInstall.md
Created February 5, 2023 20:44
Debian 11 Vaultwarden install (no docker)

Vaultwarden Debian 11 Install

This is how I installed the Rust implementation of bitwarden into a Proxmox Debian 11 LXC Container. It should work on any Debian 11 install (virtual or metal). I dislike running docker inside LXC containers for obvious reasons, so this is how I did it.

References

Prepare Base System

$ sudo apt update
@imatasic
imatasic / wget--crawl.sh
Created December 4, 2018 10:29 — forked from steveosoule/wget--crawl.sh
Wget - Options & Sample Crawler
#!/bin/sh
# wget --mirror --adjust-extension --page-requisites --execute robots=off --wait=30 --rand om-wait --convert-links --user-agent=Mozilla http://www.example.com
### V1
# wget \
# --recursive \
# --no-clobber \
# --page-requisites \
# --html-extension \
@imatasic
imatasic / Makefile
Created October 26, 2018 13:11 — forked from cjbarker/Makefile
Makefile for cross-compiling Golang. Just update BINARY var in Makefile and create empty vars in main.go for Version and Build
# ########################################################## #
# Makefile for Golang Project
# Includes cross-compiling, installation, cleanup
# ########################################################## #
# Check for required command tools to build or stop immediately
EXECUTABLES = git go find pwd
K := $(foreach exec,$(EXECUTABLES),\
$(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH)))
@imatasic
imatasic / gist:cd796cc1c5bb57f8a49163a5bc76be0b
Created October 9, 2018 22:58 — forked from cschaba/gist:4740323
PHP: parse output of "df -k"
$data = <<<EOF
Filesystem 1K-blocks Used Available Use% Mounted on
ubi0_0 143180 89740 53440 63% /
tmpfs 64 0 64 0% /dev
tmpfs 143124 76 143048 0% /tmp
tmpfs 4096 912 3184 22% /var
tmpfs 64 0 64 0% /mnt
ubi1_0 468256 12144 456112 3% /opt/data/settings
EOF;
@imatasic
imatasic / gist:06e8c04cd169f48f1fe946561fb61a19
Created May 26, 2018 23:01 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@imatasic
imatasic / clean-up-boot-partition-ubuntu.md
Created March 5, 2018 09:15 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@imatasic
imatasic / ubuntu_agnoster_install.md
Created December 10, 2017 20:46 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@imatasic
imatasic / README.txt
Created December 10, 2017 20:29 — forked from Cyberek/README.txt
Starting Kodi automatically on Raspbian Jessie and Stretch
So you were able to install Kodi via '''sudo apt-get install kodi''' but have no idea how to force it to autostart on boot?
You have tried all those googled solutions such as adding kodi-standalone to .bashrc, creating init.d script but nothing worked?
This is the right place to get the answer.
For some reason, the current version of Kodi doesnt provide 2 important files:
/etc/init.d/kodi
/etc/defaults/kodi
They are required to start kodi on boot. Also, for some unknown reason, I haven't found a single place in the whole internet, where those files would be available.
Now, to fix the problem you need to create /etc/init.d/kodi first:
sudo vim /etc/init.d/kodi (or sudo nano /etc/init.d/kodi if you are not a hardcore unix user)
The content for this file is provided in etc_init.d_kodi file attached to this gist