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 / ip-uploader.sh
Created February 14, 2011 16:21
Simple script for getting your external IP and uploading it to a server via SCP.
#!/bin/bash
# Define your server information here
SERVER="<hostname_or_ip>"
PORT="22"
USER="<user_name>"
FILEPATH="<file_path>"
# Get IP from whatismyip.com and store it in a file
wget http://www.whatismyip.com/automation/n09230945.asp -O ip.txt
@PHLAK
PHLAK / autoexec.cfg
Last active February 24, 2025 15:07
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 / TabLi.html
Created June 16, 2009 21:15
Simple AJAX serverd tabs with caching
<h1>My Account</h1>
<div id="account-tabs" class="clearfix">
<ul>
<li id="account-dashboard" class="tabli"><a href="/account/dashboard">Account Dashboard</a></li>
<li id="order-history" class="tabli"><a href="/account/order-history">Order History</a></li>
<li id="address-book" class="tabli"><a href="/account/address-book">Address Book</a></li>
</ul>
</div>