Skip to content

Instantly share code, notes, and snippets.

View SunDi3yansyah's full-sized avatar
Verified

Cahyadi Triyansyah SunDi3yansyah

Verified
View GitHub Profile
@SunDi3yansyah
SunDi3yansyah / sub.domain_nginx.conf
Created September 6, 2014 12:33
Create Sub Domain for NGINX a.k.a Virtual Host by. SunDi3yansyah
server {
server_name sub.domain;
access_log /usr/share/nginx/html/sub.domain/access.log;
error_log /usr/share/nginx/html/sub.domain/error.log;
root /usr/share/nginx/html/sub.domain;
location / {
root /usr/share/nginx/html/sub.domain;
index index.php index.htm index.html;
}
@SunDi3yansyah
SunDi3yansyah / gist:8582393baf9dcb582a3a
Created September 6, 2014 13:23
Test gist for octopress gist tag
@@ -590,7 +590,7 @@ class SpritesTest < Test::Unit::TestCase
it "should generate a sprite from nested folders" do
css = render <<-SCSS
- @import "nested/*.png";
+ @import "nested/**/*.png";
@include all-nested-sprites;
SCSS
assert_correct css, <<-CSS
@SunDi3yansyah
SunDi3yansyah / layouts_octopress
Created September 6, 2014 21:13
Struktur Layout Octopress
├── _includes
│   ├── after_footer.html
│   ├── archive_post.html
│   ├── article.html
│   ├── asides
│   │   ├── delicious.html
│   │   ├── github.html
│   │   ├── googleplus.html
│   │   ├── pinboard.html
│   │   ├── recent_posts.html
@SunDi3yansyah
SunDi3yansyah / nodejs
Created September 7, 2014 01:15
nodejs
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs
apt-get install npm
@SunDi3yansyah
SunDi3yansyah / head.html
Created September 9, 2014 21:30
head.html
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
@SunDi3yansyah
SunDi3yansyah / head.html
Created September 9, 2014 21:32
new-head
{% capture description %}{% if page.description %}{{ page.description }}{% elsif site.description %}{{ site.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}" />
{% capture keywords %}{% if page.keywords %}{{ page.keywords }}{% elsif site.keywords %}{{ site.keywords }}{% endif %}{% endcapture %}
<meta name="keywords" content="{{ keywords | strip_html | condense_spaces }}" />
@SunDi3yansyah
SunDi3yansyah / head.html
Created September 9, 2014 21:33
2nd-head
{% capture description %}{% if page.description %}{{ page.description }}{% elsif site.description %}{{ site.description }}{%else%}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{%else%}<meta name="keywords" content="{{ site.keywords }}">{% endif %}
@SunDi3yansyah
SunDi3yansyah / default
Last active August 29, 2015 14:06
sites-available/default.conf
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
@SunDi3yansyah
SunDi3yansyah / installer_nginx.sh
Created September 23, 2014 22:47
installer nginx [yum]
#!/bin/bash
# centminmod.com cli installer
#######################################################
DOWNLOAD='centmin-v1.2.3-eva2000.07.zip'
INSTALLDIR='/usr/local/src'
# SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
#######################################################
#

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text