Skip to content

Instantly share code, notes, and snippets.

Working from home

Erik Chacon erikwco

View GitHub Profile
View httpd.asm
section .text
global _start
xor eax, eax ; init eax 0
xor ebx, ebx ; init ebx 0
xor esi, esi ; init esi 0
jmp _socket ; jmp to _socket

Keybase proof

I hereby claim:

  • I am erikwco on github.
  • I am erikwco ( on keybase.
  • I have a public key whose fingerprint is 18F7 6D6D 3A8E 888F FF07 373B C271 7866 0657 B6E3

To claim this, I am signing this object:

erikwco / advance_commands.vim
Created Jul 25, 2017 — forked from fakemelvynkim/advance_commands.vim
advanced vim commands to review
View advance_commands.vim
da< (or) da( (or) da{ // delete the block including <,(,{ and >,),} rsply
di< (or) di( (or) di{ // simillarly, but excluing <,(,{ and >,),} rsply
yi< (or) yi( (or) yi{ // yanks simillarly. Simillarly for ciw, viw, etc
df<Space> // delete from current char including the next space
daw // delete current word including the next space
diq // delete current word excluding the next space
yiw // yank current word excluding the next space
yaw // yank current word including the next space
* Copyright 2016 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
erikwco / vim74centos
Created Mar 21, 2016 — forked from juxtin/vim74centos
Compile Vim 7.4 on Centos and install my vimrc
View vim74centos
yum groupinstall 'Development tools' -y
yum install ncurses ncurses-devel wget git -y
cd /usr/local/src
tar -xjf vim-7.4.tar.bz2
cd vim74
./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp
make && make install
erikwco /
Created Dec 29, 2015 — forked from alanhamlett/
Serialize SQLAlchemy Model to dictionary (for JSON output) and update Model from dictionary attributes.
import uuid
import wtforms_json
from sqlalchemy import not_
from sqlalchemy.dialects.postgresql import UUID
from wtforms import Form
from wtforms.fields import FormField, FieldList
from wtforms.validators import Length
from flask import current_app as app
from flask import request, json, jsonify, abort
View certificate generation
openssl req -newkey rsa:2048 -nodes -keyout -out
View reset.css
v2.0 | 20110126
License: none (public domain)
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
erikwco / .gitignore
Last active Aug 29, 2015 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
# Packages #
erikwco / centos_python_env_setup
Last active Aug 29, 2015 — forked from hangtwenty/centos_python_env_setup
CentOS 6: Install Python 2.7.4, pip, virtualenv, and virtualenvwrapper on CentOS (plus some bonus items at the end if you want). You should probably run with `sudo`.
View centos_python_env_setup
# Source:
# Install stuff #
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
You can’t perform that action at this time.