Skip to content

Instantly share code, notes, and snippets.

View Artistan's full-sized avatar

Charles Peterson Artistan

View GitHub Profile

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@Artistan
Artistan / setup.md
Last active September 10, 2020 02:32
Using xcode beta in MacOS Big Sur 11.0

Beta Install

ruby

rbenv install 2.6.2
rbenv global 2.6.2

find the xcode path

xcrun --show-sdk-path

@Artistan
Artistan / 1README.md
Created August 22, 2020 19:11 — forked from joseluisq/1README.md
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.

Lumen 5 HTTP Exception Handlers with JSON support.

Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.

image

Setup

Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php and app/Http/Middleware/Authenticate.php

@Artistan
Artistan / README.md
Last active March 17, 2020 16:02
Elasticsearch Aggregations
@Artistan
Artistan / test.css
Last active November 16, 2019 13:41
css for vids
#site-logo-link,
.video-ad, .ad-support-desktop,
.xv-responsive #header h2.mobile-hide {
display:none;
}
.xv-responsive #page {
max-width: none;
}
@Artistan
Artistan / SkyvergeSamplePlugin.php
Created July 8, 2019 16:30
wordpress plugin example
<?php
// https://www.skyverge.com/blog/creating-custom-plugin-for-your-woocommerce-shop/
// https://www.skyverge.com/blog/add-custom-code-to-wordpress/
/**
* Plugin Name: [Insert Name]
* Plugin URI: [Insert Plugin URL]
* Description: [Insert Short Description]
* Author: [Insert Your Name]
* Author URI: [Insert Your URL]
@Artistan
Artistan / tampermonkey-netchex-online-login.js
Created July 1, 2019 13:30
Netchex Online Login - trigger event to auto login.
// ==UserScript==
// @name netchexonline
// @namespace artistan
// @version 0.1
// @description skip username page
// @author You
// @match https://netchexonline.net/n/Login/
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require https://git.io/waitForKeyElements.js
// @grant all
// ==UserScript==
// @name MergeRequest Gitlab
// @namespace https://artistan.org/
// @version 0.1
// @author Artistan
// @include http://git*/merge_requests*
// @include https://git*/merge_requests*
// ==/UserScript==
var favicon_link_html = document.createElement('link');
@Artistan
Artistan / laravel-mix-font-awesome.md
Last active April 10, 2019 12:19 — forked from karlhillx/laravel-mix-font-awesome.md
Want to use Laravel and Font Awesome? (Regularly updated)

Laravel Mix & Font Awesome Setup: Compiling Assets

This document provides help on getting your Laravel instance running with the latest versions of Laravel Mix and Font Awesome.

Mix

Steps

Build your webpack.mix.js configuration.

@Artistan
Artistan / gist:1e811831f3af0282e5503daaa9c4e9bc
Created January 14, 2019 18:47
apache stalls on vagrant up
➜ ApacheHomestead git:(master) vagrant up
Vagrant failed to initialize at a very early stage:
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
/Users/cpeterson/VirtualBox VMs/Configs/ApacheHomestead/Vagrantfile:13: syntax error, unexpected <<, expecting end-of-input
<<<<<<< HEAD
^
➜ ApacheHomestead git:(master) git commit -a