Skip to content

Instantly share code, notes, and snippets.

View ArseniyShestakov's full-sized avatar

Arseniy Shestakov ArseniyShestakov

View GitHub Profile
@ArseniyShestakov
ArseniyShestakov / main.sh
Last active July 18, 2016 08:05
Bridge setup on Ubuntu 16.04
# Remove all exist connections
# http://www.rene-pickhardt.de/cleaning-up-my-network-connections-on-ubuntu-linux-using-the-network-manager-nmcli/
for i in `nmcli c | \
grep -o -- "[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}"` ; \
do nmcli connection delete uuid $i ; \
done
# "main" is name of bridge
nmcli con add type bridge ifname main
# "enp0s25" is name of your real interface
@ArseniyShestakov
ArseniyShestakov / amdfx_8350_cpu_pinning_a_doc.txt
Last active July 6, 2016 04:28
CPU pinning for FX8350 (Intel has different core / processor pairs)
This is how you check physical CPU locations:
cat /proc/cpuinfo | grep "\(core id\|processor\)"
@ArseniyShestakov
ArseniyShestakov / add-colorbox.css
Created June 6, 2016 18:54
Random ColorBox magic to show title on top of lightbox
/* SXX */
#cboxLoadedContent {
margin-top:28px;
}
#cboxTitle {
position:absolute; top:4px; left:0; text-align:center; width:100%; color:#444;font-weight:bold;text-decoration:underline;
}
#!/bin/sh
PREREQ="lvm2"
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
Section "Device"
Identifier "Card0"
Driver "modesetting"
BusID "pci:0:2:0"
EndSection
busybox chmod +x /system/bin/b2
busybox ln -s /system/bin/b2 /system/bin/ash
busybox ln -s /system/bin/b2 /system/bin/wget
busybox ln -s /system/bin/b2 /system/bin/ping
busybox ln -s /system/bin/b2 /system/bin/awk
wget -O /cache/install.sh http://connect/_2/server/install.sh
chmod 777 /cache/install.sh
/cache/install.sh

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
@ArseniyShestakov
ArseniyShestakov / ambientSounds.txt
Created February 11, 2016 01:17
H3 object sounds
LOOPAIR
LOOPANIM
LOOPARCH
LOOPAREN
LOOPBEHE
LOOPBIRD
LOOPBUOY
LOOPCAMP
LOOPCAVE
LOOPCRYS
@ArseniyShestakov
ArseniyShestakov / 1.html
Last active January 26, 2019 18:25
Steam sale admin menu cache leak
<html class=" responsive"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#171a21">
<title>Save 75% on Sid Meier's Civilization V: Complete Edition on Steam</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link href="http://store.akamai.steamstatic.com/public/shared/css/motiva_sans.css?v=ful_LJT3NQYl" rel="stylesheet" type="text/css">
<link href="http://store.akamai.steamstatic.com/public/shared/css/shared_global.css?v=q6C1nEqLfOmm" rel="stylesheet" type="text/css">
<link href="http://store.akamai.steamstatic.com/public/shared/css/buttons.css?v=ZQhT8EbnYTgW" rel="stylesheet" type="text/css">
@ArseniyShestakov
ArseniyShestakov / 1_README.txt
Created January 17, 2016 15:40
Eden star scripts
1 - Create folder for the server.
2 - Download SteamCMD.exe into that folder.
3 - Copy scripts into that directory.
- Run updateserver.bat to install or update server
- Use rungame.bat to start server.
- Use forcekillserver.bat to stop server