I hereby claim:
- I am ejimz on github.
- I am ejimenez (https://keybase.io/ejimenez) on keybase.
- I have a public key whose fingerprint is CE0A 09E5 FF05 CDFD 0A9A 3AA7 4AEC 6F3D 611E AF27
To claim this, I am signing this object:
<VirtualHost *:80> | |
ServerName your_server_name.com | |
DocumentRoot /var/www/static | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
Alias /css/ /var/www/static/css/ |
" enable syntax | |
sy on | |
" set my fav colorscheme | |
colorscheme elflord | |
" highlight current line | |
set cul | |
hi CursorLine term=none cterm=none ctermbg=0 |
input { | |
file{ | |
type => nginx | |
path => ["/var/log/nginx/access.log", "/var/log/nginx/error.log"] | |
tags => ["frontend"] | |
} | |
} | |
filter { |
# | |
# description: Starts and stops Solr | |
# Source debian init.d function library. | |
. /lib/lsb/init-functions | |
# options that are commonly overridden | |
SOLRROOT=/opt/solr | |
SOLRHOME=solr | |
LISTENPORT=8983 |
# clear all cache on demand | |
varnishadm "ban req.url ~ /" | |
# clear url context cache | |
varnishadm "ban req.url ~ /a/context" | |
Feature rpm deb | |
---------------------------------------------------------------------------------- | |
View all installed packages rpm -qa dpkg -l, dpkg-query -Wf '${Package}\n' | |
View package info, installed package rpm -qi packagename (1) apt-cache show packagename | |
View pre/post install shell scripts rpm -q --scripts packagename cat /var/lib/dpkg/info/packagename.{pre,post}{inst,rm} | |
View changelog for a package file rpm -qp --changelog ./packagename.rpm dpkg-deb --fsys-tarfile packagename.deb | tar -O -xvf - ./usr/share/doc/packagename/changelog.gz | gunzip | |
Uninstall a package rpm -e packagename apt-get remove/purge packagename | |
Upgrade a package from a file rpm -Uvh ./packagename.rpm dpkg -i packagename.deb | |
Find which package owns a file rpm -qif /some/file.foo dpkg -S /dome/file.foo | |
List dependencies of a package |
#Add a file named "config" in "~/.ssh/" dir wuth this content | |
Host 10.0.* | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null | |
# it would affect just to networks 10.0.*, if you want to apply it to all the network change it to * |
#!/usr/bin/env ruby | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: example.rb [options]" | |
#string as argument | |
opts.on("-u", "--url [URL]", String, "Remote url") do |url| |
# undo local chamges | |
git reset --hard | |
#get all remote branchs | |
git fetch origin | |
# back to a specific commit in remote | |
# git reset --hard COMMIT_TO_POINT | |
git reset --hard c330b3fef40794f274402e7c949b228754cc336f | |
push -f |
I hereby claim:
To claim this, I am signing this object: