Skip to content

Instantly share code, notes, and snippets.

View cdgz's full-sized avatar

Chingis cdgz

  • Australia
  • 07:59 (UTC +10:00)
View GitHub Profile
@cdgz
cdgz / gist:7cbc06171479e13f0e42149c462fb400
Last active June 16, 2016 12:38
rvm, ruby, rails (RHEL 6)
# gcc et al
yum update
yum groupinstall "Development Tools"
yum install gcc-c++ patch readline readline-devel zlib zlib-devel
yum install libyaml-devel libffi-devel openssl-devel make
yum install bzip2 autoconf automake libtool bison iconv-devel
# rvm, rails
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
@cdgz
cdgz / .shrc
Created October 23, 2015 10:53
# shell aliases
alias ll='ls -laG'
alias so='. ~/.bashrc'
alias grep="grep --color"
# prompt
PS1='\[\e[0;32m\]\u@\h\[\e[0m\] \[\e[0;33m\]\W \$\[\e[0m\] '
# source keybpard bindings
bind -f ~/.inputrc
# ctrl arrow bindings
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
@cdgz
cdgz / .hgrc
Last active March 18, 2017 15:34
[ui]
username = cdgz <zzz@zzz.com>
[extensions]
color =
mq =
rebase =
histedit =
email =
patchbomb =
@cdgz
cdgz / vim.rc
Created October 23, 2015 10:50
:syntax on
:set hlsearch
@cdgz
cdgz / crawl.py
Created October 25, 2011 15:14 — forked from jonhurlock/crawl.py
Python Web Crawler - jonhurlock
#!/usr/bin/env python
"""
Simple Indexer
=================================
Author: Jon Hurlock, October 2011
This script basically crawls a domain (not just a page) and
then extracts all links <a href=""></a>, and finds all links
on that domain it also is able extract different file types