Skip to content

Instantly share code, notes, and snippets.

View Jinksi's full-sized avatar

Eric Jinks Jinksi

View GitHub Profile
@Jinksi
Jinksi / jinksi.zsh-theme
Created April 6, 2016 03:29
Jinksi zsh-theme
# jinksi.zsh-theme
# Based on: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# primary prompt
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
$FG[032]%3~ \
$(git_prompt_info) \
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@Jinksi
Jinksi / vv-blueprints.json
Last active May 31, 2016 23:22
VV Blueprint
{
"flex-with-benefits": {
"themes": [
{
"location": "Jinksi/flex-with-benefits",
"activate": true
}
],
"mu_plugins": [],
"plugins": [
@Jinksi
Jinksi / webhook.sh
Last active August 27, 2019 14:09
Bash script for Gitlab Webhook setup & Wordpress
#!/bin/bash
# v0.9.0
# Run from Wordpress installation directory
# DEFINE COLORS
RED='\033[0;31m' # error
GRN='\033[0;32m' # success
BLU='\033[0;34m' # task
BRN='\033[0;33m' # headline
NC='\033[0m' # no color
@Jinksi
Jinksi / newbox
Last active September 27, 2016 05:00
#!/usr/bin/env python
import subprocess, fileinput, sys, os
PURPLE = "\033[95m"
WHITE = "\033[00m"
GREEN = "\033[92m"
cwd = os.getcwd()
@Jinksi
Jinksi / 0_reuse_code.js
Created November 15, 2016 01:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Jinksi
Jinksi / vultrsnapshotcronjob
Last active July 3, 2017 06:16
Vultr Snapshot Cronjob
0 0 */5 * * /usr/local/bin/vultr -k VULTR_API snapshot create -s SUBID >> /var/log/vultr.log
@Jinksi
Jinksi / gist:d9856f3a053ce7ff29e39d51d6941da0
Created July 5, 2017 23:30
Serverpilot disable display php errors server-wide
echo 'display_errors = false' | sudo tee --append /etc/php5.4-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php5.5-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php5.6-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php7.0-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php7.1-sp/php.ini && cat /etc/php5.4-sp/php.ini && cat /etc/php5.5-sp/php.ini && cat /etc/php5.6-sp/php.ini && cat /etc/php7.0-sp/php.ini && cat /etc/php7.1-sp/php.ini && sudo service php5.4-fpm-sp restart && sudo service php5.5-fpm-sp restart && sudo service php5.6-fpm-sp restart && sudo service php7.0-fpm-sp restart && sudo service php7.1-fpm-sp restart
@Jinksi
Jinksi / gc2018.md
Last active July 14, 2017 01:37
GC2018
@Jinksi
Jinksi / fetch-firebase-data.js
Last active July 21, 2020 13:19
Fetch firebase REST API data and save to .json file
const fetch = require('node-fetch')
const fs = require('fs')
const config = {
endpoint: 'https://FIREBASE_PROJECT.firebaseio.com/',
pathsToFetch: [
// database nodes
'pages',
'posts'
],