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 -
telnet nyancat.dakko.us
@bobelev
bobelev / haconfig.sh
Created Jan 14, 2016 — forked from jlazic/haconfig.sh
Split monolithic HAProxy configuration
View haconfig.sh
#!/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/
View wu.cfg
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
View bobz.cfg
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"
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"
View keybase.md

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:

View full-ffmpeg.sh
# 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
View maps.py
#!/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_',
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) {
app.show();
return app;
}
}
@bobelev
bobelev / new_gist_file
Created Sep 6, 2013
Read file line by line
View new_gist_file
while read name
do
#do what you want to $name
done < filename
You can’t perform that action at this time.