This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clear all cache on demand | |
varnishadm "ban req.url ~ /" | |
# clear url context cache | |
varnishadm "ban req.url ~ /a/context" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file{ | |
type => nginx | |
path => ["/var/log/nginx/access.log", "/var/log/nginx/error.log"] | |
tags => ["frontend"] | |
} | |
} | |
filter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" enable syntax | |
sy on | |
" set my fav colorscheme | |
colorscheme elflord | |
" highlight current line | |
set cul | |
hi CursorLine term=none cterm=none ctermbg=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName your_server_name.com | |
DocumentRoot /var/www/static | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
Alias /css/ /var/www/static/css/ |
NewerOlder