Skip to content

Instantly share code, notes, and snippets.

Dan Revel nopolabs

Block or report user

Report or block nopolabs

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
View test
<p>This super comfy top comes in 6 colors and features cut-out straps that go from the neckline to the back, lightweight soft fabric that drapes well, and an try to size design. Wear it with a structured skirt or your favorite jeans.</p><p>Material: 100% Modal&nbsp;</p><p>Please review measurements below for best fit:<br /></p><p></p><ul><li>SMALL: Length: 26&quot;, Bust : 36&quot;, Shoulder: 14&quot;, Sleeves: 21.5&quot;<br /></li><li>MEDIUM: Length: 26.5&quot;, Bust : 38.5&quot;, Shoulder: 14.5&quot;, Sleeves: 22&quot;<br /></li><li>LARGE: Length: 27&quot;, Bust : 41&quot;, Shoulder: 15.5&quot; , Sleeves: 22&quot;<br /></li><li>X-LARGE: Length: 27.5&quot;, Bust: 43.5&quot;, Shoulder 16&quot;, Sleeves: 22.5&quot;<br /></li><li>XX-LARGE: Length: 28&quot;, Bust: 46&quot;, Shoulder 17&quot;, Sleeves,: 22.5&quot;<br /></li></ul><p></p>
@nopolabs
nopolabs / clean-up.sql
Created Nov 2, 2018
channel categories clean up
View clean-up.sql
DELETE cct FROM opensky_devo.channel_category_taxons cct WHERE cct.categoryId IN (740);
DELETE cc FROM opensky_devo.channel_categories cc WHERE cc.id IN (740);
DELETE cct FROM opensky_devo.channel_category_taxons cct WHERE cct.categoryId IN (747,746);
DELETE cc FROM opensky_devo.channel_categories cc WHERE cc.id IN (747,746);
DELETE cct FROM opensky_devo.channel_category_taxons cct WHERE cct.categoryId IN (752);
DELETE cc FROM opensky_devo.channel_categories cc WHERE cc.id IN (752);
DELETE cct FROM opensky_devo.channel_category_taxons cct WHERE cct.categoryId IN (754);
DELETE cc FROM opensky_devo.channel_categories cc WHERE cc.id IN (754);
DELETE cct FROM opensky_devo.channel_category_taxons cct WHERE cct.categoryId IN (768);
DELETE cc FROM opensky_devo.channel_categories cc WHERE cc.id IN (768);
@nopolabs
nopolabs / tutorial.md
Created Jun 15, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@nopolabs
nopolabs / xdebug
Last active Dec 14, 2017
bash script to run php with xdebug enabled
View xdebug
#!/bin/bash
PHP=${PHP:-`which php`}
XDEBUG_INI=${XDEBUG_INI:-`${PHP} --ini | awk 'BEGIN { FS=","; } /xdebug.ini/ { print $1; }'`}
XDEBUG_HOST=${XDEBUG_HOST:-1.2.3.1}
XDEBUG_PORT=${XDEBUG_PORT:-9001}
IDE_KEY=${IDE_KEY:-PHPSTORM}
if [ "$1" = "--help" -o "$1" = "" ]
then
@nopolabs
nopolabs / previous-git-tag.sh
Last active Sep 28, 2016 — forked from kjantzer/previous-git-tag.sh
Get Previous Git Tag (the one before the latest tag on trunk)
View previous-git-tag.sh
# http://stackoverflow.com/a/28818420/484780
git describe --abbrev=0 --tags `git rev-list --first-parent --tags --skip=1 --max-count=1`
View dbgtest.php
<?php
// adapted from https://blogs.oracle.com/netbeansphp/entry/howto_check_xdebug_installation
$address = $argv[1] ?: '127.0.0.1';
$port = '9000';
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
socket_bind($sock, $address, $port) or die();
echo "Listening to $address:$port\n";
socket_listen($sock);
$client = socket_accept($sock);
echo "Connection established: $client\n";
@nopolabs
nopolabs / list-yum.sh
Created Apr 27, 2015
list packages in a given yum repo
View list-yum.sh
sudo yum --disablerepo="*" --enablerepo="osis" --showduplicates list available
@nopolabs
nopolabs / pcat
Last active Aug 29, 2015 — forked from tazjel/pcat
View pcat
sudo apt-get install python-pygments && alias pcat="pygmentize -f terminal256 -O style=native -g"
View style.css
/* Define the scrolling window, best left alone unless you want scroll area less than full-screen */
.window {
width:1024px;
height:768px;
}
/* Put your styles here */
body {
View shippo-not-found
% curl -i -k https://api.goshippo.com/v1/
HTTP/1.1 404 NOT FOUND
Content-Type: text/html
Date: Sun, 15 Dec 2013 06:24:08 GMT
Server: gunicorn/18.0
X-Frame-Options: SAMEORIGIN
Content-Length: 77
Connection: keep-alive
<h1>Not Found</h1><p>The requested URL /v1/ was not found on this server.</p>%
You can’t perform that action at this time.