Skip to content

Instantly share code, notes, and snippets.

View remy-actual's full-sized avatar

Remy Schrader remy-actual

  • Southern California
View GitHub Profile
@remy-actual
remy-actual / powershell7_install.sh
Created September 30, 2025 17:18
PowerShell 7 Install on Linux Bash Script
#!/bin/bash
# from "How to install PowerShell 7 and essential tools on Linux"
# https://mikefrobbins.com/2024/09/26/how-to-install-powershell-7-and-essential-tools-on-linux/
# Determine the system architecture
ARCH=$(dpkg --print-architecture)
# Get the latest PowerShell version number
pwshVersion=$(curl -s https://api.github.com/repos/PowerShell/PowerShell/releases/latest | grep 'tag_name' | cut -d '"' -f 4 | sed 's/v//')
@remy-actual
remy-actual / areEqual.js
Last active August 13, 2018 23:29
Javascript function to check for equality of any two parameters
/**
* Compare two variables of any type for recursive (deep) equality
* @param {*} bar - variable to test against for a match
* @param {*} data - output variable being tested
* @returns {boolean} true if vars are equal, false if unequal
*/
function areEqual (bar, data) {
var types = {
string: {
bar: Object.prototype.toString.call(bar),
@remy-actual
remy-actual / TerminalVim.scpt
Created September 16, 2016 15:53 — forked from brablc/TerminalVim.scpt
Open Vim in Terminal (iTerm) from Finder - copied from http://thepugautomatic.com/2015/02/open-in-iterm-vim-from-finder/ and updated to open in the current terminal
on run {input, parameters}
set cmd to "vim -c startinsert"
if input is not in {} then
set myPath to POSIX path of input
set cmd to "vim " & quote & myPath & quote
end if
tell application "iTerm"
activate
set myTerm to (current terminal)
@remy-actual
remy-actual / README.md
Created June 11, 2016 18:05 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@remy-actual
remy-actual / functions.php
Last active March 28, 2016 04:28 — forked from cjkoepke/functions.php
Use enqueue to asynchronously load additional stylesheets with header links to add google fonts to your Wordpress theme.
<?php
//* Do NOT copy the opening PHP tag
//* Add Google Fonts to our header
add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' );
function ck_load_google_fonts() {
wp_enqueue_style( 'ck-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans', array(), CHILD_THEME_VERSION );
}
@remy-actual
remy-actual / authors.yml
Last active September 6, 2015 20:28 — forked from ravasthi/_config.yml
Multiple authors on Jekyll
# located in _data/ subdirectory
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
remy:
@remy-actual
remy-actual / GIF-Screencast-OSX.md
Last active August 29, 2015 14:27 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@remy-actual
remy-actual / JekyllApps.js
Last active August 29, 2015 14:27 — forked from RainerAtSpirit/JekyllApps.js
Adding AngularJS search in Jekyll blog
/**
* Setup Module with `highlight` filter
*/
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false);
});
JekyllApp.filter('highlight', function () {
return function (text, filter) {

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@remy-actual
remy-actual / _godoc
Last active August 29, 2015 14:15 — forked from icholy/_godoc
#compdef godoc
typeset -A opt_args
local context state line
local pkgdir usrpkgdir
pkgdir="$GOROOT/src/pkg"
usrpkgdir="$GOPATH/src"
godoctmpl=~/.godoc_templates