Skip to content

Instantly share code, notes, and snippets.

Avatar

RC racl101

  • Calgary, AB, Canada
View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Oct 31, 2020
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@bishboria
bishboria / springer-free-maths-books.md
Last active Oct 16, 2020
Springer made a bunch of books available for free, these were the direct links
@m4tthumphrey
m4tthumphrey / ConcatAudioFilter.php
Last active Sep 5, 2020
php-ffmpeg concat audio filter - an incredibly simple filter to concat multiple audio files together. Should be easily tweaked to allow for videos too.
View ConcatAudioFilter.php
<?php
use FFMpeg\Media\Audio;
use FFMpeg\Format\AudioInterface;
use FFMpeg\Filters\Audio\AudioFilterInterface;
class ConcatAudioFilter implements AudioFilterInterface
{
private $files;
private $priority;
@carolineschnapp
carolineschnapp / gist:1002949
Last active Jul 30, 2020
Related Products by Tags — to add to product.liquid
View gist:1002949
<!-- Solution brought to you by Caroline Schnapp -->
<!-- See this: http://wiki.shopify.com/Related_Products -->
{% assign image_size = 'compact' %}
{% assign heading = 'Other fine products' %}
{% if product.tags.size > 0 %}
<h3>{{ heading }}</h3>
<ul class="related-products"></ul>
@wholmgren
wholmgren / use-bbdiff
Last active Jul 2, 2020
set git difftool to bbdiff
View use-bbdiff
git config --global diff.tool bbdiff
git config --global difftool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"'
git config --global difftool.prompt false
git config --global merge.tool bbdiff
git config --global mergetool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"'
Double check ~/.gitconfig
@spigists
spigists / new_gist_file.css
Created Oct 2, 2013
Bootstrap 3 styles for Gravity Forms, make sure that in Forms > Settings you have Output CSS set to No and Output HTML5 set to Yes
View new_gist_file.css
.gform_wrapper ul {
padding-left: 0;
list-style: none; }
.gform_wrapper li {
margin-bottom: 15px; }
.gform_wrapper form {
margin-bottom: 0; }
@boyvanamstel
boyvanamstel / gist:1055880
Created Jun 30, 2011
Show custom post types on tag, category and archive pages in Wordpress
View gist:1055880
<?php
/**
* Also show custom post types in tag/category/archive pages
*/
function query_post_type($query) {
if(is_category() || is_tag()) {
$post_type = get_query_var('post_type');
if($post_type) {
$post_type = $post_type;
} else {
@carolineschnapp
carolineschnapp / gist:1003334
Created Jun 1, 2011
Related Products using metafields - to add to product.liquid
View gist:1003334
<!-- Solution brought to you by Caroline Schnapp -->
<!-- See this: http://wiki.shopify.com/Related_Products -->
{% assign image_size = 'compact' %}
{% assign heading = 'Other fine products' %}
{% if product.metafields.recommendations.productHandles %}
<h3>{{ heading }}</h3>
<ul class="related-products"></ul>
View Envoy.blade.php
* -A in SSH enables agent forwarding.
* -p 2122 is not needed if you use the default port of 22.
* Replace SSH_USER and example.com with your own values.
* Example run: $ envoy run deploy_demo
* --no-scripts because Laravel composer.json's post-install-cmd includes optimize, which is already done by php artisan dump-autoload
@servers(['test' => '-A -p 2122 -l user test.example.com', 'prod' => '-A -p 2122 -l user example.com'])
@task('install_test', ['on' => ['test']])
cd project
You can’t perform that action at this time.