Skip to content

Instantly share code, notes, and snippets.

View benzap's full-sized avatar
🏠
Working from home

Benjamin Zaporzan benzap

🏠
Working from home
View GitHub Profile
@benzap
benzap / makefile
Created June 3, 2012 04:30
makefile for portable code between mingw and linux builds
#Written By: Benjamin Zaporzan
UNAME := $(shell uname)
CC = g++
PROGRAM_NAME =
OBJ =
##########################
######## Linux ###########
##########################
ifeq ($(UNAME), Linux)
#include specific variables for jobs
@benzap
benzap / .tmux.conf
Created June 7, 2012 17:47
Tmux configuration file
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a last-window
# change window splitting to emacs style
unbind %
unbind 3
@benzap
benzap / .emacs.el
Last active September 14, 2023 14:39
Emacs Configuration
;; add our main ~/.emacs.d/ to the load-path (if it hasn't already been done)
;;(add-to-list 'load-path "~/.emacs.d/")
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
;; Package Require function. It resolves any require dependencies
;; through the package manager.
(setq package-refresh-first-time nil)
@benzap
benzap / disableImplicit.mk
Created June 9, 2012 20:41
Template Makefile For library Construction
# Disable implicit rules to speedup build
.SUFFIXES:
SUFFIXES :=
%.out:
%.a:
%.ln:
%.o:
%: %.o
%.c:
%: %.c
@benzap
benzap / Baseserver.py
Created June 20, 2012 14:11
Thread Pool Example (Jon's)
import socket, select
import os, sys, signal
import hashlib, hmac
import logging
import profile
from BaseHandler import *
class BaseServer:
def __init__(self, host, port, HandlerClass = BaseHandler):
@benzap
benzap / GitPresentation.org
Created June 24, 2012 17:38
Introduction to Version Control and Git Crash Course

Introduction

What is version control?

Version control is the management of changes to documents, computer programs, and general collections of information. I will refer to it as a project.

How to use version control?

Version control is a means in which several people can work on one project. It also allows you to review changes that people have made in the past.

@benzap
benzap / README.md
Created August 17, 2013 04:38 — forked from nickbudi/README.md

budi's CS:GO Config

This is my constantly updated CS:GO autoexec config.

Put the file autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

Launch Options

-novid -noborder -high -threads 4 -freq 144 +exec autoexec.cfg +mat_vignette_enable 0
(require 'iimage)
(autoload 'iimage-mode "iimage" "Support Inline image minor mode." t)
(autoload 'turn-on-iimage-mode "iimage" "Turn on Inline image minor mode." t)
(add-to-list 'iimage-mode-image-regex-alist '("@startuml\s+\\(.+\\)" . 1))
;; Rendering plantuml
(defun plantuml-render-buffer ()
(interactive)
(message "PLANTUML Start rendering")
(shell-command (concat "java -jar ~/Downloads/plantuml.jar "
https://github.com/kripken/emscripten.wiki.git