Skip to content

Instantly share code, notes, and snippets.

Charles Peterson Artistan

View GitHub Profile
@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
@Artistan
Artistan / Appendable.md
Created Nov 5, 2018
Make a model dynamically appendable.
View Appendable.md
@Artistan
Artistan / LoadData.php
Last active Jul 1, 2019
Load Data Local Infile - Laravel Seeder
View LoadData.php
<?php
/**
* notes
*
* decent tutorial on load data...
* https://tenerant.com/blog/using-load-data-local-infile-in-a-laravel-migration/
*
* simple example
* https://gist.github.com/Xeoncross/2012182
*
You can’t perform that action at this time.