Skip to content

Instantly share code, notes, and snippets.

View alan5281's full-sized avatar

alan alan5281

  • Game Company
  • Taiwan
View GitHub Profile
@alan5281
alan5281 / deb11vaultwardenInstall.md
Last active March 24, 2022 02:35
CentOS 7 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
@alan5281
alan5281 / nginx config file
Created March 28, 2017 09:20 — forked from ntakaaki/nginx config file
nginx startup script with cronolog
user nginx;
worker_processes 1;
error_log /var/log/nginx/error_log_pipe warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@alan5281
alan5281 / utf8-regex.js
Created May 5, 2016 18:04 — forked from chrisveness/utf8-regex.js
Utf8 string encode/decode using regular expressions
/**
* Encodes multi-byte Unicode string into utf-8 multiple single-byte characters
* (BMP / basic multilingual plane only).
*
* Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars.
*
* Can be achieved in JavaScript by unescape(encodeURIComponent(str)),
* but this approach may be useful in other languages.
*
* @param {string} strUni Unicode string to be encoded as UTF-8.
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis ([email protected])
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import select
@alan5281
alan5281 / README.md
Created February 10, 2014 17:48 — forked from nikcub/README.md