Skip to content

Instantly share code, notes, and snippets.

@Artistan
Artistan / setup.md
Last active Sep 10, 2020
Using xcode beta in MacOS Big Sur 11.0
View setup.md

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 Aug 22, 2020 — forked from joseluisq/1README.md
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
View 1README.md

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 / test.css
Last active Nov 16, 2019
css for vids
View test.css
#site-logo-link,
.video-ad, .ad-support-desktop,
.xv-responsive #header h2.mobile-hide {
display:none;
}
.xv-responsive #page {
max-width: none;
}
View SkyvergeSamplePlugin.php
<?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 Jul 1, 2019
Netchex Online Login - trigger event to auto login.
View tampermonkey-netchex-online-login.js
// ==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
View merge-request-icon-tampermonkey.js
// ==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 Apr 10, 2019 — forked from karlhillx/laravel-mix-font-awesome.md
Want to use Laravel and Font Awesome? (Regularly updated)
View laravel-mix-font-awesome.md

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.

View gist:1e811831f3af0282e5503daaa9c4e9bc
➜ 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
@Artistan
Artistan / Shapeoko Settings Reference.md
Last active Jan 6, 2019
Shapeoko Settings Reference.
View Shapeoko Settings Reference.md
You can’t perform that action at this time.