Skip to content

Instantly share code, notes, and snippets.

@nanpx
nanpx / .htaccess
Last active January 2, 2016 02:59
Basic .htaccess starter file
# Optionially turn off Entity Tags
Header unset Pragma
FileETag None
Header unset ETag
#-------------------------------------------------------------------------------------------------
# Suppress or force the www. at the beginning of URLs
# Option 1:
@nanpx
nanpx / ds_cleaner.class.php
Created January 6, 2014 17:25
Numeric entity encoder/decoder, check public functions for use.
<?php
mb_internal_encoding("UTF-8");
class ds_cleaner {
private static $allowTags;
private static $defaultTags;
private static $stripTags;
private static $encodeTags;
@nanpx
nanpx / main.less
Last active November 10, 2016 07:03
LESS
@charset "UTF-8";
@import "variables.less";
@import "mixins.less";
@import "reset.less";
@import "utility.less";
@nanpx
nanpx / README.md
Last active January 13, 2020 19:49
node-dbus worker threads

dbus Worker Threads Demo

This gist is working through the issue of getting the dbus npm package to work with Node.js worker threads, specifically on node v12.13.0.

To run:

npm install
npm run demo
# run the same demo