Skip to content

Instantly share code, notes, and snippets.

@cobyism
cobyism / gh-pages-deploy.md
Last active March 24, 2026 04:52
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@yaph
yaph / Ubuntu_post_install.sh
Last active February 15, 2021 22:49
Ubuntu post install scripts
sudo apt-get install abiword chromium-browser gimp gftp icoutils keepassx python-gpgme ssh xclip
# drivers
sudo apt-get install brother-lpr-drivers-extra
# dev
sudo apt-get install curl git gitk htop phantomjs python-pip mysql-server r-base vim
# Apache
sudo apt-get install apache2 libapache2-mod-fcgid
@ramnathv
ramnathv / README.md
Last active September 9, 2022 02:41
Upload Directory of Files using Gist API

This is a short set of functions that use the httr package to upload a directory of files as a gist. The post_gist function uploads an anonymous gist, which can only be deleted within a short time of being uploaded. So be cautious in what you upload using this function.

@puppybits
puppybits / gist
Last active April 10, 2022 21:04
#! /usr/bin/python
#
# Download all your gists locally.
# Change, modify and create new gists offline, then upload to github
#
# How to install:
# curl -O https://gist.github.com/raw/5096082/ac83f7ed9ce57323785291b91c71fd4d6e2c3d42/gist && export GITHUB_USERNAME=xxxxxxx && export GITHUB_PASSWORD=xxxxxxxx
#
# ## Feature Set:
# * list my gists
@jwebcat
jwebcat / gist:5122366
Last active March 26, 2026 23:26 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@max-mapper
max-mapper / readme.md
Last active January 28, 2024 18:11
How-to: Write a node module with voxel.js

Writing node modules with voxel.js

This is a short guide that will teach you the workflows that have been figured out by the voxel.js community for writing node modules + sharing them on NPM and Github. It is assumed that you have a basic understanding of JavaScript, github and the command line (if not you can check out an introduction to git and the command line or learn JS basics from JavaScript for Cats)

The voxel-tower repository on github contains all the example code from this guide.

Table of contents

@skopp
skopp / embeddableclip.html
Last active December 7, 2020 03:18
A simple way to embed gist into Blogger's dynamic view.
<!-- to do: make this parse -->
<div class="clipboardEmbedClip" data-clip-id="LQL1lDhsxPcZfc2h4vuk3E1MpI-5Xc_CPlqe" data-width="782" data-height="763" data-scale="disabled">
</div>
<script type="text/javascript">(function() {if (!window.CLIPBOARD || !window.CLIPBOARD.widgets) {var elem = document.createElement("script");elem.type = "text/javascript";elem.async = true;elem.src = "//clipboard.com/js/widgets.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(elem, s);}})();
</script>
@blha303
blha303 / spCSVParse.py
Last active October 24, 2020 02:50
Export Spotify playlists to CSV script
#!/usr/bin/env python2
# Spotify URI list to CSV with track information
# by blha303 <[email protected]>
# Licensed under the zlib license:
# Copyright © 2013 Steven Smith
# This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
# Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
# 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
# 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
@pascalmaddin
pascalmaddin / parallax-image-with-text.html
Last active May 14, 2021 14:38
An Image with parallax-effect and with some text, which is fading out while scrolling
<div id="banner">
<div class="wrap-center">
<div class="banner-centered" id="banner-text">
<h2>Hello <strong>We Are Company-Name</strong>, Glad To See You. :-)</h2>
</div>
</div>
</div>
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 24, 2026 19:00
A badass list of frontend development resources I collected over time.