Skip to content

Instantly share code, notes, and snippets.

Reilly Lowery RiFi2k

View GitHub Profile
View pubkey.pgp
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFytvmcBEADBCRPPEueXbuGzvgO5m+qp0r2jsQ2AvlqNfBNk48NF0Rx9iu1U
YQL+G+izXFR23x+QCEPB5ap3KmCO279BBfl72zJITlz9NHA1KFUnxraYOjloHQ51
kH4EG83KwTlrfCQWF+wMQ0Pi84MoBr5zHbmuq8E+4Hx4pNWgtwniqKG1dxYaZaLY
WIWWtDFNBEV9m+jY5EajexVfxTXdnsZ3fGaRWusOnyF+ch428nTZxcTfXaeoykPN
ZVKje38rC9bBWoLT9hi+kLQtto5wj/qqydwRvy8n+Uc5zlY9XkhkAaf8PqW3IiEk
SbsX+SKHM+Lh15yy5szxuLifpBaQ32gPEdhIpIoQcmIUP6wuck9xjBCEpe362oaq
wI9vPopZ+iSX2+3mS0egJC9kJq2ikDjo5MnOw5ee9MZWKQAugtJVw9EwCBC2sRVY
d7tiYI/cm/r7jEmgjRUg4Q/r76XtFC+HK8wY7tP16aq9v4XKpGylOTZk+8ZHIlmn
View request.js
import Qs from 'qs';
import axios from 'axios';
// Axios defaults.
axios.defaults.baseURL = smu.siteurl;
axios.defaults.headers.post['Content-Type'] =
'application/x-www-form-urlencoded';
axios.defaults.transformRequest = data => Qs.stringify(data);
// Async await request
View check.js
(function(jQuery) {
jQuery(window).load(function() {
var cookie_name = '_bw';
function get_cookie() {
var keyValue = document.cookie.match('(^|;) ?' + cookie_name + '=([^;]*)(;|$)');
return keyValue ? keyValue[2] : null;
}
function set_cookie(value) {
View get_post_meta
[{"type":"container","id":0,"name":"Market Visibility","required":false,"columns":[{"id":0,"type":"item","required":false,"media":[{"id":12,"media":[]},{"id":71,"media":[{"id":2747,"url":"https://cdn.smehost.net/www2sonymusicucom-45pressdevel/wp-content/uploads/2018/11/IMG_4521.jpeg","title":"#CherryPools Party Setup","caption":"I threw a Halloween Party at my house on Oct. 27 and set up a mirror with “Love, #CherryPools” written on it, pointing to the box of blow pops and encouraged guests to take the blow pops as well as take selfies in the mirror.","selected":true,"video":false},{"id":2762,"url":"https://cdn.smehost.net/www2sonymusicucom-45pressdevel/wp-content/uploads/2018/11/IMG_4563-e1541273819375.jpeg","title":"Guest interacting with #CherryPools mirror and blow pops","caption":"Party guests took selfies in the #CherryPools mirror and sent them to me","selected":true,"video":false},{"id":2752,"url":"https://cdn.smehost.net/www2sonymusicucom-45pressdevel/wp-content/uploads/2018/11/IMG_4562-e154127384595
View apple
<!doctype html>
<html>
<head>
<title>Example Add to Library Button</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
</head>
<body>
<div class="container mt-5">
<form id="apple_music_form">
<label for="apple_music_email_address">Email Address</label>
@RiFi2k
RiFi2k / img_404_change_url.conf
Last active Jan 12, 2019
Nginx change img url on 404
View img_404_change_url.conf
location ~* (/[^/]+/)?uploads/(.+\.(png|gif|jpe?g)) {
try_files $uri $uri/ /index.php?q=$uri&$args;
expires max;
log_not_found off;
access_log off;
}
location ~ ^(.*)\/wp-content\/uploads\/(.*)$ {
try_files $uri @missing;
}
@RiFi2k
RiFi2k / arch-usb-uefi.md
Created Dec 1, 2018 — forked from elerch/arch-usb-uefi.md
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support
View arch-usb-uefi.md

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
View .editorconfig
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
View gist:9b58824f615e51cbfc0b3cef69261e9b
<!doctype html>
<html>
<head>
<title>Example Add to Library Button</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
</head>
<body>
<div class="container mt-5">
<form id="apple_music_form">
<label for="apple_music_email_address">Email Address</label>
View amk_deps_composer.json
{
"require": {
"php": ">=7.1.3",
"web-token/jwt-framework": "^1.1"
}
}
You can’t perform that action at this time.