Skip to content

Instantly share code, notes, and snippets.

@nkhine
nkhine / rt.js
Last active February 14, 2017 14:24
rt.js
!function(f) {
function e(a) {
if(n[a])return n[a].exports;
var u=n[a]= {
exports: {}
,
id: a, loaded: !1
}
;
return f[a].call(u.exports, u, u.exports, e),
@nkhine
nkhine / output
Last active December 21, 2016 23:02
'uuid': {
'name': 'String',
'statement_descriptor': 'String',
'persona': 'String',
'created': timestamp,
'interval': timestamp[day/month/year],
'interval_count': 1,
'livemode': boolean,
'trial_period_days': int
'hourly': boolean
@nkhine
nkhine / data
Created December 21, 2016 10:01
"data": [
{
"id": "1hr-test-gbp",
"object": "plan",
"amount": 1000,
"created": 1482085325,
"currency": "gbp",
"interval": "month",
"interval_count": 1,
"livemode": true,
@nkhine
nkhine / _.md
Created June 22, 2016 08:33 — forked from PyYoshi/_.md
Disable Transparent Huge Pages on CoreOS
$ sudo -i
# vim /etc/systemd/system/disable-transparent-huge-pages.service
# systemctl enable disable-transparent-huge-pages
# systemctl start disable-transparent-huge-pages
# systemctl status disable-transparent-huge-pages
# cat /sys/kernel/mm/transparent_hugepage/enabled
# cat /sys/kernel/mm/transparent_hugepage/defrag
@nkhine
nkhine / coreos-windows-share.sh
Created March 8, 2016 09:00 — forked from pantelis/coreos-windows-share.sh
Mount Windows share drives on CoreOS
# WARNING - THIS IN NOT a SHELL SCRIPT - JUST a LIST of COMMANDS
# based on https://github.com/coreos/coreos-overlay/issues/595 with links updated
# Build cifs-utils in a container and copy it into /tmp on the host.
$docker run -t -i -v /tmp:/host_tmp fedora /bin/bash
# On the container bash prompt
yum groupinstall -y "Development Tools" "Development Libraries"
yum install -y tar
yum install -y bzip2
curl http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-6.3.tar.bz2 | bunzip2 -c - | tar -xvf -
2014-10-10T07:48:04.532Z - error: Web Request Crash, /cart/view, TypeError: Object [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Objec
@nkhine
nkhine / gist:e654b53905ff9f119cca
Created September 12, 2014 08:57
paypal sandbox request
Reply >>>> {
"id": "PAY-5DC727074K9372822KQJLKOI",
"create_time": "2014-09-12T08:56:25Z",
"update_time": "2014-09-12T08:56:27Z",
"state": "approved",
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
@nkhine
nkhine / gist:19cda0ea9fa2509a872a
Created September 12, 2014 07:35
iconv npm issues
npm http GET https://registry.npmjs.org/iconv
npm ERR! tar.unpack untar error /Users/khinester/.npm/iconv-lite/0.4.4/package.tgz
npm http GET https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/globule
npm ERR! Error: ENOENT, lstat '/Users/khinester/Sandboxes/Business/continentalclothing.com/node-blade-boiler-template/node_modules/nodemailer/node_modules/mailcomposer/node_modules/mimelib/node_modules/encoding/node_modules/iconv-lite/README.md~'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
@nkhine
nkhine / gist:fa51bb6cb6f958efd80f
Last active August 29, 2015 14:05
fabric entires
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
100% Certified Organic Cotton Jersey 145 g / 4.3 oz.
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
100% Certified Organic Cotton Pique 180 g / 5.3 oz.
100% Certified Organic Cotton Pique 180 g / 5.3 oz.
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
100% Certified Organic Cotton Jersey 155 g / 4.6 oz.
1) Load the u3g(4) driver:
# kldload u3g
# kldstat
Id Refs Address Size Name
...
7 1 0xffffffff81b6e000 5ffb u3g.ko
2) Set the driver to load at boot: