Skip to content

Instantly share code, notes, and snippets.

┌─────┐
│CSS │
│IS │
│AWESO│ME
└─────┘
module.exports = {
get permalink() {
if( process.env.NODE_ENV === "production" )
{
return false;
}
// formatted for Liquid & Nunjucks templates
return "/devPages/{{ page.fileSlug }}/index.html"
},
@ashur
ashur / gco.zsh
Last active August 23, 2021 19:50
Prompt to create branch when attempting to checkout a non-existent branch ✨
function gco
{
git checkout $@
if [ "$?" = 1 ]; then
read "create?Create branch '${1}'? [Y/n] "
if [ "$create" != "n" ]; then
git checkout -b $1
else
return 1
fi
@ashur
ashur / shows.opml
Created April 19, 2018 20:49
An example OPML file for shows from a single network
<?xml version="1.0"?>
<opml version="1.1">
<head>
<title>Shows by Gimlet Media</title>
</head>
<body>
<outline xmlUrl="http://feeds.gimletmedia.com/chompers" text="Chompers" title="Chompers" type="rss" version="RSS"/>
<outline xmlUrl="http://feeds.gimletmedia.com/crimetownshow" text="Crimetown" title="Crimetown" type="rss" version="RSS"/>
<outline xmlUrl="http://feeds.gimletmedia.com/eltshow" text="Every Little Thing" title="Every Little Thing" type="rss" version="RSS"/>
<outline xmlUrl="http://feeds.gimletmedia.com/heavyweightpodcast" text="Heavyweight" title="Heavyweight" type="rss" version="RSS"/>
@ashur
ashur / slack
Last active August 29, 2015 14:22
post a message to a Slack channel from the command line
#!/usr/bin/env php
<?php
/**
* Post a message to a Slack channel from the command line
* A sloppy, shameless rip-off of @foozmeat's squirt https://gist.github.com/foozmeat/82f177d60d5dfc7fc518
*/
if( $argc < 4 )
{
@ashur
ashur / chocklockblock
Last active August 29, 2015 14:01
A Tweetbot Mute keyword to block all-caps tweets
^[A-Z\s\p{P}]*$

Keybase proof

I hereby claim:

  • I am ashur on github.
  • I am ashur (https://keybase.io/ashur) on keybase.
  • I have a public key whose fingerprint is 487D 9467 BC5D 890D 75EA 1983 9A00 FBAD AB73 96E9

To claim this, I am signing this object: