Skip to content

Instantly share code, notes, and snippets.

View thinkryan's full-sized avatar

Ryan Dennler thinkryan

  • Centro
  • San José, Costa Rica
View GitHub Profile
@thinkryan
thinkryan / fzf-config.fish
Created June 12, 2022 06:54 — forked from max-sixty/fzf-config.fish
Fish fzf settings & functions
## FZF settings & functions for fish; collected with attribution and modified.
# These rely on `git lg`; from git's config:
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
# They also rely on the following being installed:
# - bat
# - choose
# - delta
# - exa
# - fd
@thinkryan
thinkryan / actionlist.vim
Created May 23, 2022 16:52 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@thinkryan
thinkryan / untrusted-lvl2-solution.js
Created March 4, 2017 04:57
untrusted-lvl2-solution
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
@thinkryan
thinkryan / zsh-installation-wplib
Created February 18, 2017 20:20
Shell installation of Zsh and theme setup on WPLib Vagrant deployment
# ZSH Installation
# Install git and zsh prerequisites
config.vm.provision :shell, inline: "apt-get -y install git"
config.vm.provision :shell, inline: "apt-get -y install zsh"
# Clone Oh My Zsh from the git repo
config.vm.provision :shell, privileged: false,
inline: "git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh"
@thinkryan
thinkryan / base-admin.class.php
Created February 8, 2017 20:34
Adjust $arrMetaBoxes to be defined with array() instead of '' for additional PHP7 support
<?php
/**
* @author ThemePunch <info@themepunch.com>
* @link http://www.themepunch.com/
* @copyright 2015 ThemePunch
*/
if( !defined( 'ABSPATH') ) exit();
class RevSliderBaseAdmin extends RevSliderBase {
@thinkryan
thinkryan / us-state-names-abbrevs.php
Created February 7, 2017 14:05 — forked from maxrice/us-state-names-abbrevs.php
US State Names & Abbreviations as PHP Arrays
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
<?php
/**
* Filter the terms query SQL clauses.
*
* @see 'terms_clauses' filter in get_terms() wp-includes/taxonomy.php
*
* @since 0.1.0
*
* @todo add filter for $allowed_orderby_keys

Keybase proof

I hereby claim:

  • I am ryan4021 on github.
  • I am ryandennler (https://keybase.io/ryandennler) on keybase.
  • I have a public key whose fingerprint is F567 ABFE FCCE 30BD 7091 86EB C695 DB36 A9FF 9656

To claim this, I am signing this object:

@thinkryan
thinkryan / ajax.js
Created July 25, 2016 19:22 — forked from franz-josef-kaiser/ajax.js
AJAX in WordPress. Class based example.
( function( $, plugin ) {
"use strict";
// Working with promises to bubble event later than core.
$.when( someObjectWithEvents ).done( function() {
console.log( 'AJAX request done.' );
} )
.then( function() {
setTimeout( function() {
console.log( 'AJAX requests resolved.' );
@thinkryan
thinkryan / .bashrc
Created December 10, 2015 03:47 — forked from voyeg3r/.bashrc
bashrc based on Linux mint bashrc and other stuffs
# Last Change: 2012 Jan 05 10:48:29
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# http://www.caliban.org/bash/
# Author: Sérgio Luiz Araújo Silva
# Site: http://vivaotux.blogspot.com
# twitter: http://www.twitter.com/voyeg3r
#
# ( O O )