Skip to content

Instantly share code, notes, and snippets.

@kaufd
kaufd / proxmox-cifs-lxc.md
Created November 16, 2023 10:24 — forked from zaki-hanafiah/proxmox-cifs-lxc.md
Proxmox: Create CIFS shared storage between host and LXCs (Linux Containers)

In the LXC (run commands as root user)

  1. Create the group "lxc_shares" with GID=10000 in the LXC which will match the GID=110000 on the PVE host.

   groupadd -g 10000 lxc_shares

  1. Add the user(s) that need access to the CIFS share to the group "lxc_shares". f.e.: jellyfin, plex, ... (the username depends on the application)

   usermod -aG lxc_shares USERNAME

Proxmox

So if you're using Proxmox you need to open up ssh and run the following commands:

  1. Setup a root password
sudo passwd root
@kaufd
kaufd / routes.js
Created November 7, 2019 09:50 — forked from sergeysova/routes.js
const routes = [
{
name: "auth.login",
path: "/login",
component: LoginPage,
guards: [checkAuthn({ auth: false, redirectTo: "home" })],
},
{
name: "transactions.list",
path: "/transactions",
@kaufd
kaufd / criticalcss-bookmarklet-devtool-snippet.js
Created August 10, 2017 16:34 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
@kaufd
kaufd / tmux-cheatsheet.markdown
Created October 1, 2015 12:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname