Skip to content

Instantly share code, notes, and snippets.

Andrey bobelev

Block or report user

Report or block bobelev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View -
bobelev /
Created Jan 14, 2016 — forked from jlazic/
Split monolithic HAProxy configuration
#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:
View wu.cfg
sv_cheats 1
mp_autoteambalance 0
mp_limitteams 0
bot_dont_shoot 1
bot_difficulty 3
mp_spawnprotectiontime 0
mp_respawn_immunitytime 0
mp_maxrounds 100
sv_infinite_ammo 1
View bobz.cfg
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"
View autoexec.cfg
// 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"

Keybase proof

I hereby claim:

  • I am bobelev on github.
  • I am 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:

# Add multimedia source
echo "deb wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src 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
#!/usr/bin/env python2
maps = ['surf_aircontrol_ksf',
View gist:473f29ba82e938b14c90
App.byTitle = function(title) {
var apps = this.runningApps();
for (i = 0; i < apps.length; i++) {
var app = apps[i];
if (app.title() === title) {;
return app;
bobelev / new_gist_file
Created Sep 6, 2013
Read file line by line
View new_gist_file
while read name
#do what you want to $name
done < filename
You can’t perform that action at this time.