Skip to content

Instantly share code, notes, and snippets.

Nguyễn Đình Quân Narga

Block or report user

Report or block Narga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Narga / buttons.css
Last active Sep 30, 2019
Simple, Beauty CSS Buttons
View buttons.css
* Simple & Beauty CSS Buttons
* Author URI:
.btn {
font-size: 14px;
line-height: 20px;
position: relative;
Narga / 51-noto-color-emoji.conf.xml
Last active Apr 30, 2019 — forked from hexchain/51-noto-color-emoji.conf.xml
Google Noto Color Emoji on Arch Linux desktop. Don't forget to remove Firefox's built-in EmojiOne font.
View 51-noto-color-emoji.conf.xml
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/conf.avail/51-noto-color-emoji.conf -->
<patelt name="family"><string>Noto Color Emoji</string></patelt>
View wp-cli.txt
# Install wordpress
wp core download && wp core config --dbname=wordpress_test_db --dbuser=root && wp core install --url=http://localhost/wp-cli/ --title=Wordpress --admin_user=admin --admin_password=admin
# Install and activate Plugins
wp plugin install wordpress-importer --activate && wp plugin install contact-form-7 --activate
# Generate Posts
curl | wp post generate --post_content --count=10
# Activate a theme
View clear_jetpack_published.php
function clear_jetpack_published() {
if(empty($_REQUEST['post'])) {
wp_die(__('Invalid post ID or action'));
global $wpdb;
$id = isset($_REQUEST['post']) ? absint($_REQUEST['post']) : '';
View nginx.conf
# Basically the nginx configuration I use at
# I check it using
# To provide feedback, please tweet at @konklone or email
# Comments on gists don't notify the author.
# Thanks to WubTheCaptain ( for his help and ciphersuites.
# Thanks to Ilya Grigorik ( for constant inspiration.
server {
View Contract Killer

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

View wp-query-ref.php
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
$args = array(
View deploy
#!/usr/bin/env bash
if [ ! -f "${OPENSHIFT_DATA_DIR}composer/bin/composer" ]; then
echo "Installing composer"
curl -s | env - PATH="/usr/bin:$PATH" php -- --install-dir=$OPENSHIFT_DATA_DIR >/dev/null
View master.vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
Narga / 0_reuse_code.js
Created Feb 10, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.