Skip to content

Instantly share code, notes, and snippets.

View RiFi2k's full-sized avatar

Reilly Lowery RiFi2k

View GitHub Profile
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle; }
.select2-container .select2-selection--single {
box-sizing: border-box;
cursor: pointer;
display: block;
@RiFi2k
RiFi2k / nano-shorts.md
Created December 31, 2017 00:04 — forked from X3MBoy/nano-shorts.md
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
@RiFi2k
RiFi2k / keybase.md
Last active January 16, 2019 05:02

Keybase proof

I hereby claim:

  • I am rifi2k on github.
  • I am rifi (https://keybase.io/rifi) on keybase.
  • I have a public key ASBAAC94ptTq9_M6AjO2fQh4UV4MzzLd6l2aMGOdFM4xRgo

To claim this, I am signing this object:

jQuery(document).ready(function($) {
/**
* Media Uploader
*/
var media_uploader = null;
function open_media_uploader_video(img, field) {
media_uploader = wp.media({
title: 'Select or Upload Media',
button: {
text: 'Use this media'
/**
* Copy to Clipboard
*
* Depends on clipboard.js v1.5.5
* https://zenorocha.github.io/clipboard.js
*/
var clipboard = new Clipboard('.copyToClipboard');
clipboard.on('success', function(e) {
$(e.trigger).tooltip('show');
setTimeout(function(){ $(e.trigger).tooltip('destroy') }, 2000);
var valid_spotify_playlist_name = new RegExp('/^spotify:user:\b\w*:playlist:\b\w*$/i');
var valid_spotify_artist_uri = new RegExp('/^spotify:(artist|user):\b\w*$/i');
(function( $ ) {
'use strict';
// On DOM ready.
$(function() {
$('#dtk-importer-start').submit(function(e) {
e.preventDefault();
var str = $(this).serialize();
var div = $('#dtk-import-reload');
var error = '<span class="ajax-error">Sorry, you broke it</span>';
ExecStart=/usr/bin/dockerd -H fd:// --exec-opt native.cgroupdriver=systemd
@RiFi2k
RiFi2k / .bashrc
Created August 24, 2017 08:42 — forked from rickdaalhuizen90/.bashrc
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace