Skip to content

Instantly share code, notes, and snippets.

View talnetd's full-sized avatar

talnetd talnetd

View GitHub Profile
" My default vimrc inspaired by KHZ ( https : //github.com/emoosx/dotvim ) && by Frew (http : //stackoverflow.com/users/12448/frew) via http : //stackoverflow.com/q/164847/216055
set encoding=utf-8
let &t_Co=256
" And Thanks to @ChrisHunt for his awesome tal
" Configuration file for vim
" Pathogen
execute pathogen#infect()
" Vundle
root = "/vagrant/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
listen "/tmp/unicorn.projectname.sock"
worker_processes 2
timeout 30
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Manage unicorn server
# Description: Start, stop, restart unicorn server for a specific application.
### END INIT INFO
upstream unicorn {
server unix:/tmp/unicorn.projectname.sock fail_timeout=0;
}
server {
listen 80 default_server deferred;
# server_name example.com;
root /home/username/apps/projectname/current/public;
location ^~ /assets/ {
@talnetd
talnetd / vim
Created January 29, 2015 05:42
Just a simple VIM setup
#!/usr/bin
# Lets get started
sudo apt-get update
# Install Vi Improved
sudo apt-get install vim
# Get the NeoBundle to the house
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
@talnetd
talnetd / crud.c
Created February 12, 2015 15:59
Simple CRUD in C to understand how one connect to DATABASE
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
@talnetd
talnetd / README-Template.md
Created July 15, 2019 01:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@talnetd
talnetd / autorun.cfg
Created May 25, 2020 11:42
CSGO AUTORUN
// righthand toggle
bind l "toggle cl_righthand 0 1"
// Rates
rate "786432" // max rate, lower if having network issues
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_interpolate "1"
@talnetd
talnetd / install_note.md
Created July 5, 2020 17:08
docker,kubernetes and minikube on ubuntu
@talnetd
talnetd / nginx.conf
Created July 17, 2020 20:36 — forked from morhekil/nginx.conf
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '