Skip to content

Instantly share code, notes, and snippets.

View bangbambang's full-sized avatar

Bambang Catur Pamungkas bangbambang

View GitHub Profile
@bangbambang
bangbambang / meta-tags.md
Created December 12, 2019 22:51 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@bangbambang
bangbambang / tmux-cheatsheet.markdown
Created February 1, 2018 04:36 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bangbambang
bangbambang / scrambledEggs.py
Created September 1, 2016 04:11 — forked from dylnmc/scrambledEggs.py
Hungry? Have some scrambled eggs!
#!/usr/bin/env python3
if __name__ == '__main__':
from sys import platform
if not platform.startswith('linux'):
from sys import stderr
print('Sorry; this only works in Linux!', file=stderr)
exit(1)
from os import system
from random import randint
@bangbambang
bangbambang / install-comodo-ssl-cert-for-nginx.rst
Created May 11, 2016 00:57 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@bangbambang
bangbambang / curl.md
Last active August 29, 2015 14:14 — forked from btoone/curl.md

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40
-module(dispatcher).
-export([dispatch/2]).
dispatch(_, []) -> none;
dispatch(Req, [{Regexp, Handler}|T]) ->
"/" ++ Path = Req:get(path),
Method = Req:get(method),
Match = re:run(Path, Regexp, [global, {capture, all_but_first, list}]),
case Match of
{match, [MatchList]} ->
<?php
add_theme_support('menus');
/**
* Register Menus
* http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus(array(
'top-bar-l' => 'Left Top Bar', // registers the menu in the WordPress admin menu editor
'top-bar-r' => 'Right Top Bar'