Skip to content

Instantly share code, notes, and snippets.

@noelbundick
noelbundick / LICENSE
Last active October 5, 2023 04:20
Solarized Dark for Bash on Windows
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@alinradut
alinradut / rotoscope.sh
Created May 3, 2017 08:45
A script that will convert a regular video to a rotoscoped video. Requires autotrace, ffmpeg, imagemagick.
#!/bin/bash
# rotoscope - auto rotoscope a video file with openSource Software on Linux
# needs ffmpeg, autotrace and ImageMagick
# usage: rotoscope videofile //will create videofile.rotoscoped.avi
# created by Honza Svasek : HonzaSvasek.nl
# edited by Joseph Riopelle finitelife[at]hotmail.com
set -x
export TMPDIR=/tmp/rotoscope$$
export FILM=$1
require 'rubygems'
require 'selenium-webdriver'
LOGIN = "me@danielsim.co.uk"
PASSWORD = "***"
DOMAINS = ["example1.myshopify.com", "example2.myshopify.com"]
CUSTOM_MESSAGE = "custom message"
@cmalard
cmalard / subl
Last active February 13, 2019 20:23 — forked from versedi/.sh
Cygwin + Sublime Text 3 : works with files and Git
#!/bin/bash
# To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x
ARGS=""
while test $# -gt 0
do
ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path
shift
done
@bhavyaw
bhavyaw / objExtend.js
Last active August 11, 2018 20:53
Native JS Extend Functionality
/**
* Object Extending Functionality
*/
var extend = function(out) {
out = out || {};
for (var i = 1; i < arguments.length; i++) {
if (!arguments[i])
continue;
for (var key in arguments[i]) {
@carolineschnapp
carolineschnapp / page.list-collections.liquid
Last active June 21, 2021 20:39
To add at the bottom of page.list-collections.liquid. In the New Standard theme, use the content of page.full-width.liquid and copy the code at the bottom of that content. This won't work in the Lookbook, Brooklyn, Simple and Kickstand themes.
{% comment %}
Collections are listed here.
{% endcomment %}
{% capture uses_minimal_framework %}{% include 'product-loop' %}{% endcapture %}
{% if uses_minimal_framework contains 'Liquid error' %}
{% assign uses_minimal_framework = false %}
{% assign grid_item_width = 'large--one-quarter medium--one-third small--one-half large--col-3 medium--col-4 small--col-6' %}
{% else %}
@zmwangx
zmwangx / fb-dl.py
Last active November 28, 2023 20:29
Scrape all photos from a public Facebook page.
#!/usr/bin/env python
############################### README ###############################
# External dependencies:
# * libmagic
# * python-dateutil
# * python-magic
# * requests
#
# The shell command call at the end was tested with GNU date from GNU
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active June 24, 2024 20:17
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@ltrebing
ltrebing / delicious-bookmark
Created January 8, 2014 00:54
A Delicious bookmarklet that opens an old-style new tab (or window) instead of putting a fancy inline frame thing on the page.
javascript:(function(e,t){window.open(%22https://delicious.com/save?url=%22+encodeURIComponent(e.location.href)+%22&title=%22+encodeURIComponent(e.document.title)+%22&note=%22+encodeURIComponent(%22%22+e.getSelection()?e.getSelection():e.document.getSelection?e.document.getSelection():e.document.createRange().text)+%22&v=1.1%22,%22_blank%22);})(window)
@tonkapark
tonkapark / bigcartel_to_shopify_csv.rb
Created August 3, 2011 18:06
Generate a products csv file to make it easier to migrate from Big Cartel to Shopify
#script created by Matt Anderson, http://tonkapark.com
require 'rubygems'
require 'bigcartel'
require 'csv'
# SET YOUR BIGCARTEL ID HERE
STORE = 'ugmonk'
# SET THE BEST NAME FOR ANY DROP DOWN OPTIONS