Skip to content

Instantly share code, notes, and snippets.

@joshrieken
joshrieken / gist:e1d7124b846f1d6d61fe1a5717205ce1
Last active October 5, 2019 05:05
Dotfiles on Ubuntu on Windows
Getting clipboard working w/ vim:
https://superuser.com/a/1345241
Running an appimage:
https://discourse.appimage.org/t/run-appimage-on-windows/177
Python 3.6 (for deoplete)
https://stackoverflow.com/questions/41712326/how-to-install-python3-6-in-window-ubuntu-bash
Upgrade git
@joshrieken
joshrieken / dell_precision_5510_korora_24.md
Last active October 3, 2016 15:13
Setting up Korora 24 (Fedora 24) on Dell Precision 5510

Installing Korora

My laptop came with Windows 10 installed. The first major issue I ran into involved the fake-RAID setup. My only drive, a 1 TB PCIe SSD, came configured as RAID-0 in UEFI. I configured it to use AHCI, which required a reinstall of Windows 10.

After reinstalling Windows 10 using the provided DVD, I was able to install Korora via a bootable USB drive.

The install worked as expected, and I was able to boot into both Korora and Windows 10 on demand.

Post-Install

@joshrieken
joshrieken / run_for_all_apps.sh
Created May 17, 2016 00:32
Easily run commands for all umbrella project apps
#!/bin/sh
ESC_SEQ="\x1b["
COL_RESET=$ESC_SEQ"39;49;00m"
COL_GREEN=$ESC_SEQ"32;01m"
for f in apps/*;
do
[ -d $f ] && cd "$f" && echo "$COL_GREEN ======= $f ======= $COL_RESET" && $@
cd - >/dev/null

Keybase proof

I hereby claim:

  • I am facto on github.
  • I am facto (https://keybase.io/facto) on keybase.
  • I have a public key whose fingerprint is 8642 A806 BDBD 371D 9977 9C94 BC4D C6B1 E81F 6087

To claim this, I am signing this object:

@joshrieken
joshrieken / loopdedoo.js
Created January 22, 2016 03:49
Ardent Camper looping videos code
$(function() {
var $video = $('.hero-video');
var $hero = $('.hero');
if (!!$video.length) {
function playVideos() {
var videos = [
{
src: [
@joshrieken
joshrieken / Gulpfile.js
Last active July 10, 2019 15:33
Replacing Brunch with Gulp in Phoenix
// Contains support for: SASS/SCSS, concatenation, and minification for JS and CSS
var gulp = require('gulp');
var sass = require('gulp-ruby-sass');
var concat = require('gulp-concat');
var compress = require('gulp-yuicompressor');

Keybase proof

I hereby claim:

  • I am facto on github.
  • I am facto (https://keybase.io/facto) on keybase.
  • I have a public key whose fingerprint is 19B5 069B 6B93 8308 7E67 E143 D6F0 3169 E84A F23C

To claim this, I am signing this object:

@joshrieken
joshrieken / locomotive_wordpress.md
Last active September 5, 2019 10:03
A comparison of Rails+LocomotiveCMS vs. Wordpress for small business CMS sites.

Wordpress (PHP-based CMS [content management system])

Pros

Quick bootup

You can get up and running very quickly.

Hosting options

@joshrieken
joshrieken / gist:7156583
Last active December 26, 2015 13:09
Compiling ImageMagick with jasper support via homebrew
Install jasper:
$ brew install jasper
Uninstall your version of imagemagick:
$ brew uninstall imagemagick
Gain access to previous versions of homebrew packages:
$ brew tap homebrew/versions
Now, check out the version of ImageMagick corresponding to our project's version of RMagick (6.8.6-3):
@joshrieken
joshrieken / gist:5843181
Created June 23, 2013 00:04
sublime text 2 + vintage mode autocomplete fix
{ "keys": ["ctrl+c"], "command": "hide_auto_complete", "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
},