Skip to content

Instantly share code, notes, and snippets.

View cmejo's full-sized avatar

Christopher Mejo cmejo

View GitHub Profile
### Keybase proof
I hereby claim:
* I am cmejo on github.
* I am cmejo (https://keybase.io/cmejo) on keybase.
* I have a public key ASDP1uYo3rZyvg8Wdvm-wnjR4jjQSDZEY71KRS6htFl-IQo
To claim this, I am signing this object:
@cmejo
cmejo / Sublime Text Plugins I use
Last active August 29, 2015 14:14
a bunch of vital plugins for the LEMP stack, and Ruby, Python, C#, AngularJS et al.
ASP.sublime-package
ActionScript.sublime-package
AppleScript.sublime-package
Batch File.sublime-package
C#.sublime-package
C++.sublime-package
CSS.sublime-package
Clojure.sublime-package
Color Scheme - Default.sublime-package
D.sublime-package
# Default backend definition. Set this to point to your content server.
#
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
}
#Drupal specific rewriting configuration
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
# pass php requests to php-fpm # make sure you have php5-fpm installed, if you're using fastcgi, tell me and i'll give you fpm configs and we'll switch php to fpm as it's faster and more secure
location ~ \.php$ {
# Connect via socket not TCP
#fastcgi_pass unix:/var/run/php-fpm/phpsock.sock; # verify where the socket is on centos, google for an answer
# drupal 7 nginx vhost configuration
server {
server_name boncera.com; # change obviously
rewrite ^ http://www.boncera.com$request_uri? permanent; # this makes it so whether the user types in www or non-www it redirects always to www and is SEO approved
}
server {
listen 80;
server_name www.boncera.com; # change the domain name obviously
$ sudo
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user]
[VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file
...
# This is a basic VCL configuration file for varnish. See the vcl(7) main page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content server.
#
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
extension=apc.so
apc.enabled=1
apc.shm_segments=1
;could go down to 32M, 128M is rather high but we have the memory for it
apc.shm_size=128M
apc.cache_by_default=1
apc.stat=0
apc.ttl=0
<ul id="menu-main-menu" class="sidemenu"><li id="menu-item-173" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-173"><a href="http://informant.example.com/archive/">Archive</a></li>
<li id="menu-item-148" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-148"><a href="/bills-blog/">Bill&#8217;s Blog</a></li>
<li id="menu-item-149" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-149"><a href="/submit-a-post">Submit a Post</a></li>
</ul> </div>
nav .menu li a{
font-family: 'Gotham-Light','Arial',sans-serif;
font-weight:normal !important;
margin:0 10px;
padding: 30px 6px;
display: inline-block;
font-size: 13px;
text-transform:uppercase;
color: #FFF;
opacity: 0.8;