Skip to content

Instantly share code, notes, and snippets.

https://herold.space/proxmox-lxc-intel-quick-sync-for-plex/
nano /etc/pve/lxc/<container id>.conf
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
require:
- rubocop-rspec
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
@alextakitani
alextakitani / ubuntu-raid.sh
Last active August 13, 2021 16:21 — forked from umpirsky/ubuntu-raid.sh
Install Ubuntu on RAID 0 and UEFI/GPT system
# http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer
# http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D
sudo -s
apt-get -y install mdadm
apt-get -y install grub-efi-amd64
sgdisk -z /dev/nvme0n1
sgdisk -z /dev/nvme1n1
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/nvme0n1
sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID" /dev/nvme0n1
@alextakitani
alextakitani / gist:b430958327bc44954f2a1b486141d64d
Last active December 26, 2023 14:40
Upgrade postgresql 14 to 16
# remember to remove old dbs, old extensions and stuff like that, it all adds up to the time it's going to take
# this works fine for 15 also
sudo apt-get install postgresql-16 postgresql-server-dev-16
# mine neededs hypopg
cd /tmp
curl -L https://github.com/HypoPG/hypopg/archive/1.1.4.tar.gz | tar xz
cd hypopg-1.1.4
@alextakitani
alextakitani / demo_data.json
Created November 23, 2019 22:17
demo_data
{'2017-05-13': 2, '2017-05-14': 5}
@alextakitani
alextakitani / link.txt
Created April 29, 2019 18:46
Client Fortinet Linux
@alextakitani
alextakitani / cloudSettings
Last active February 28, 2020 18:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-28T18:54:45.200Z","extensionVersion":"v3.4.3"}
@alextakitani
alextakitani / upgrade-postgres-11-to-12.md
Last active March 17, 2021 05:22 — forked from delameko/upgrade-postgres-9.5-to-9.6.md
Upgrading PostgreSQL from 10 to 11 on Ubuntu 18.04

TL;DR

sudo apt-get install -y postgresql-12 postgresql-server-dev-12 postgresql-contrib-12 libpq-dev postgresql-12-hypopg
sudo pg_dropcluster 12 main --stop
sudo pg_upgradecluster 11 main
sudo pg_dropcluster 11 main
@alextakitani
alextakitani / alias.txt
Created March 14, 2014 22:38
Alias ZSH
alias dm='rake db:migrate'
alias dmt='rake db:migrate && rake db:test:prepare'
alias dmp='RAILS_ENV=production rake db:migrate'
alias rc='rails c'
alias rg='rails g'
alias rcp='RAILS_ENV=production rails c'
alias rs='rails s'
alias rsp='RAILS_ENV=production rails s'
alias zdm='zeus rake db:migrate'
alias zdmt='zeus rake db:migrate && zeus rake db:test:prepare'