Skip to content

Instantly share code, notes, and snippets.

View PHLAK's full-sized avatar
Coffee... always coffee...

Chris Kankiewicz PHLAK

Coffee... always coffee...
View GitHub Profile
@PHLAK
PHLAK / autoexec.cfg
Last active February 15, 2024 00:03
Custom Counter-Strike 2 autoexec.cfg
// -------------------------------------------------------------------------- //
// -----| INTERFACE AND INPUT |---------------------------------------------- //
// -------------------------------------------------------------------------- //
cl_showloadout 1
cl_teamid_overhead_mode 1
engine_no_focus_sleep 0
r_show_build_info 1
m_rawinput 1
@PHLAK
PHLAK / autoexec.cfg
Last active July 5, 2022 17:01
L4D2 autoexe.cfg
// ---------------------------------------------------------------------------------------------- //
// -----| NETCODE OPTIMIZATIONS |---------------------------------------------------------------- //
// ---------------------------------------------------------------------------------------------- //
cl_cmdrate "30" // Command packets sent to server per second (Default 30)
cl_updaterate "30" // Packets per second you request from the server (Default 20)
cl_interp "0.067" // Interpolation value to match updaterate 30 (Default 0.1)
rate "30000"; // Max bytes/sec the host can receive data (Default 10000)
@PHLAK
PHLAK / ping-test.sh
Created February 11, 2014 18:11
24 hour while loop in bash
#!/bin/bash
## Script start time
START=$(date +%s)
## Total run time
DURRATION=$((60 * 60 * 24))
## Total running time
UPTIME=$(($(date +%s) - $START))
@PHLAK
PHLAK / stylesheet.css
Last active May 26, 2020 17:06
Gnome Switcher stylesheet (Ubuntu 20.04 theme)
.switcher-box-layout {
background-color: #323030;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(24, 28, 32, .8);
color: #AAA;
font-family: Ubuntu, sans-serif;
margin-top: 100px;
overflow: hidden;
}
@PHLAK
PHLAK / README.md
Created May 7, 2020 20:29
Custom Bash Color Scheme
Color Base16 (ish)
Dark Gray #4A4848
Red #AB4642
Green #95B56C
Yellow #F7CA88
Blue #7C98C2
Magenta #B68BBA
Cyan #86C1B9
Light Gray #D5D3D3
@PHLAK
PHLAK / workspace-fsck.sh
Last active March 19, 2020 17:52
Performs fsck and gc on all Git repositories in a given directory.
#!/usr/bin/env bash
set -o errexit pipefail
WORKSPACE=${HOME}/workspace # Path to your workspace
find ${WORKSPACE} -name '.git' -type d | while read LINE; do
pushd "${LINE}/../"
git fsck && git gc
popd
done
@PHLAK
PHLAK / autoexec.cfg
Last active August 25, 2019 20:25
Custom Dota 2 autoexec.cfg
// -------------------------------------------------------------------------- //
// -----| PERFORMANCE |------------------------------------------------------ //
// -------------------------------------------------------------------------- //
fps_max 200
@panorama_max_fps 200
@panorama_vsync 0
echo "/* ---------------------------------------------------- */"
@PHLAK
PHLAK / build.json
Created November 13, 2014 21:12
Packer QEMU / KVM example.
{
"variables": {
"ssh_user": "root",
"ssh_pass": "T@c0_Bu3n0"
},
"builders": [
{
@PHLAK
PHLAK / README.md
Last active March 30, 2019 07:02
Restic Installation & Configuration

Install the pre-compiled Restic binary.

curl --silent --location https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_amd64.bz2 | bzip2 --decompress \
| sudo tee /usr/bin/restic > /dev/null && sudo chmod +x /usr/bin/restic

Backup:

source /etc/restic/config && sudo -E restic backup --option b2.connections=10 --exclude-caches --exclude-file /etc/restic/excludes.list /home /etc

Cleanup:

@PHLAK
PHLAK / twrp_backup.sh
Last active December 27, 2018 23:19
TWRP Backup Script
#!/usr/bin/env bash
adb reboot recovery
adb wait-for-device
adb shell twrp backup SDBO
adb reboot