Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
// ==UserScript== | |
// @name Moodle Broken File Check | |
// @namespace elearning.pacificcollege.edu | |
// @description Check for Broken Files | |
// @version 1 | |
// @include http://elearning.pacificcollege.edu/course/* | |
// @grant none | |
// ==/UserScript== | |
var links = document.links; |
Getting started:
Related tutorials:
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:
git status
list which (unstaged) files have changed
$(document).ready(function () { | |
/* | |
// ****** EDIT THIS SECTION ONLY ******* | |
// ****** Change Section Number and Accordion Titles ******* | |
// ****** Change Webinar Resource Titles added last ******* | |
// ****** Everything on the page is auto categorized ******* | |
*/ | |
/* Section */ | |
var section = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; |
// ==UserScript== | |
// @name Add Saved Items to Cart | |
// @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305 | |
// @version 0.5 | |
// @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success. | |
// @author https://github.com/beporter | |
// @match https://www.amazon.com/gp/registry/wishlist/* | |
// @match https://www.amazon.com/hz/wishlist/ls/* | |
// @match https://www.bestbuy.com/cart | |
// @match https://www.bestbuy.com/site/customer/lists/manage/saveditems |
/* Wait for DOM to load */ | |
document.addEventListener('DOMContentLoaded', function() { | |
/* Add event listener to TOC links */ | |
const buttons = document.querySelectorAll('.chapter-title'); | |
buttons.forEach(function(button) { | |
button.addEventListener('click', function () { | |
// Need a timeout to wait for the active page getting the correct class | |
setTimeout(function() { | |
const iframes = document.querySelectorAll('iframe'); | |
iframes.forEach(function(iframe) { |
// We want our front-end scripts queued on the login pages only | |
add_action( 'login_enqueue_scripts', array( $this, 'add_scripts' ) ); | |
/* Hide the username with CSS, instead of as a hidden form field. */ | |
// Dumb-browser-friendly solution is to wrap field in hidden div | |
$( '#resetpassform input[id=\'user_login\']' ).wrap( | |
'<div style="display:none">') | |
// Browsers are more likely to recognise the user ID if it's a text field | |
$( '#resetpassform input[id=\'user_login\']' ).attr( 'type', 'text' ) | |
// Just in case, make sure the textfield isn't editable by the user | |
$( '#resetpassform input[id=\'user_login\']' ).attr( 'readonly', true ) |
docker build .
will run the Dockerfile to create an image
docker build . -t [Dockerhub-username]/[image-name]:[v1]
build an image with a specific version
docker push [Dockerhub-username]/[image-name][v1]
push to dockerhub
docker images
will print all the available images
docker run {IMAGE_ID}
will run a container with the image
docker run -d {IMAGE_ID}
will run a container with the image in the background
docker ps
will print all the running containers
docker kill {CONTAINER_ID}
will terminate the container