This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gsettings set org.gnome.shell.overrides edge-tiling false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmdkey /add:$serverIP /user:$serverIP\$unixAccoutnName /pass:$password | |
net use S: \\192.168.1.22\myshare /SAVECRED /PERSISTENT:YES | |
net use Z: /delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "(( 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 |
NewerOlder