Skip to content

Instantly share code, notes, and snippets.

@bobelev
bobelev / new_gist_file
Created September 6, 2013 21:29
Read file line by line
while read name
do
#do what you want to $name
done < filename
App.byTitle = function(title) {
var apps = this.runningApps();
for (i = 0; i < apps.length; i++) {
var app = apps[i];
if (app.title() === title) {
app.show();
return app;
}
}
#!/usr/bin/env python2
maps = ['surf_aircontrol_ksf',
'surf_akai_final',
'surf_and_destroy',
'surf_beginner',
'surf_derpis_ksf',
'surf_forbidden_ways_ksf',
'surf_funhouse_njv',
'surf_kitsune',
'surf_leet_xl_beta7z_',
# Add multimedia source
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-key update
apt-get update
# Go to local source directory

Keybase proof

I hereby claim:

  • I am bobelev on github.
  • I am bobelev (https://keybase.io/bobelev) on keybase.
  • I have a public key whose fingerprint is 4EC8 36CC E0C7 59F7 4B42 CE8B 8BC0 7FB9 FEAE EF63

To claim this, I am signing this object:

// repositions the gunmodel to mimic CSS more closely.
viewmodel_fov "65"
viewmodel_offset_x "1"
viewmodel_offset_y "-2"
viewmodel_offset_z "-2"
// removes the shifting of the arm when crouching down.
cl_viewmodel_shift_left_amt "0"
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
sv_cheats 1
mp_autoteambalance 0
mp_limitteams 0
bot_dont_shoot 1
god
bot_difficulty 3
mp_spawnprotectiontime 0
mp_respawn_immunitytime 0
mp_maxrounds 100
sv_infinite_ammo 1
@bobelev
bobelev / haconfig.sh
Created January 14, 2016 18:05 — forked from jlazic/haconfig.sh
Split monolithic HAProxy configuration
#!/bin/bash
#Requirements: etckeeper, diffcolor
#This script concatenates multiple files of haproxy configuration into
#one file, and than checks if monolithic config contains errors. If everything is
#OK with new config script will write new config to $CURRENTCFG and reload haproxy
#Also, script will commit changes to etckeeper, if you don't use etckeeper you
#should start using it.
#Script assumes following directory structure:
#/etc/haproxy/conf.d/
telnet nyancat.dakko.us