Skip to content

Instantly share code, notes, and snippets.

FLAGS NAME NB_COMPONENTS BITS_PER_PIXEL
-----
IO... yuv420p 3 12
IO... yuyv422 3 16
IO... rgb24 3 24
IO... bgr24 3 24
IO... yuv422p 3 16
IO... yuv444p 3 24
IO... yuv410p 3 9
IO... yuv411p 3 12
apt-get install build-essential autoconf libncurses-dev m4 libssl-dev xsltproc libxml2-utils unixodbc-dev
mkdir -p /root/source
git clone https://github.com/erlang/otp /root/source/otp
cd /root/source/otp && ./otp_build autoconf && ./configure --enable-lock-counter && make -j$(nproc) && make install
git clone https://github.com/elixir-lang/elixir.git /root/source/elixir
cd /root/source/elixir && make clean && make install
mix local.hex --force && mix local.rebar --force
@vans163
vans163 / lsyncd_example
Created June 29, 2019 13:56
using lsyncd instead of sshfs
git clone https://github.com/axkibe/lsyncd
apt-get install cmake liblua5.3-dev lua5.3
git apply << EOF
diff --git a/default-rsync.lua b/default-rsync.lua
index 106c58d..8157c26 100644
--- a/default-rsync.lua
+++ b/default-rsync.lua
@@ -669,7 +669,7 @@ end
//gcc -O3 -fpic -shared -I/usr/lib/erlang/usr/include/ nif_tcp.c -o nif_tcp.so
#include "erl_nif.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
@vans163
vans163 / gnome2.sh
Created September 17, 2017 04:31
Gnome 3.26 Setup
#!/bin/bash
gsettings set org.gnome.shell.overrides edge-tiling false
cmdkey /add:$serverIP /user:$serverIP\$unixAccoutnName /pass:$password
net use S: \\192.168.1.22\myshare /SAVECRED /PERSISTENT:YES
net use Z: /delete
mkdir -p /srv/salt
#.bash_profile
#ulimit -n 63536
#top -aSCHIP
# sysctl dev.igb | grep -v ": 0"
# pfctl -si
#processor.max_cstate=1
#intel_idle.max_cstate=0
@vans163
vans163 / virtualbox.sh
Last active November 6, 2021 22:15
Virtualbox Commandline stuff
#Create storage
VBoxManage createhd --filename VMName.vdi --size 40000 --format VDI
VBoxManage modifyhd GoDial.vdi --resize 30500
VBoxManage list hdds
VBoxManage closemedium disk $(UUID) --delete
#Create VM
VBoxManage createvm --name "VMName" --ostype Windows7_64 --register
@vans163
vans163 / saltstack_commands
Last active September 23, 2016 22:37
Saltstack Commands
dnf install salt-master
systemctl enable salt-master
systemctl start salt-master
salt-master -l debug
echo "failhard: True" >> /etc/salt/master
salt '*' state.show_highstate #top.sls
salt 'minion1' state.show_sls examples #example.sls
@vans163
vans163 / saltstack_erlang_dev
Last active September 24, 2016 03:41
Saltstack erlang development configuration
# "(( id|processo).*:|^ *$)" /proc/cpuinfo
kernel.grub_args:
file.replace:
- path: /etc/default/grub
- repl: 'GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on isolcpus=1-15,17-31 nohz_full=1-15,17-31 rcu_nocbs=1-15,17-31 default_hugepagesz=1GB hugepagesz=1GB hugepages=8"'
- pattern: 'GRUB_CMDLINE_LINUX_DEFAULT=".*?"'
- flags: ['IGNORECASE', 'MULTILINE']
#cat /proc/cmdline