Skip to content

Instantly share code, notes, and snippets.

View chrisvasey's full-sized avatar
:shipit:
Working from home

Chris Vasey chrisvasey

:shipit:
Working from home
View GitHub Profile
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 151.4 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data OSXRESERVED 8.0 GB disk0s4
5: Microsoft Reserved 16.8 MB disk0s5
import duolingo
import json
from pprint import pprint
#Get Users
chris = duolingo.Duolingo('ChrisVasey')
grace = duolingo.Duolingo('Grace489298')
will = duolingo.Duolingo('WillChambe5')
james = duolingo.Duolingo('jameswilsonbrown')
mark = duolingo.Duolingo('MarkBurns5')
@chrisvasey
chrisvasey / .htaccess
Created August 7, 2017 08:43
Bedrock .htaccess for shared hosting - rewrite to /web directory
Options -Indexes
# .htaccess primary domain to web redirect
# this file must be in the (public_html | web ) folder of your hosting account
# make the changes to the file according to the instructions.
<IfModule mod_rewrite.c>
# Do not change this line.
RewriteEngine on
# Change %host% to be your primary domain.
@chrisvasey
chrisvasey / github.markdown
Last active June 16, 2020 10:43
A short cheat sheet for saving your arse with version control.

How to git

A short cheat sheet for saving your arse with version control.

First run

Create the repo git init

Track everything

git add -A

@chrisvasey
chrisvasey / example.html
Created January 16, 2018 15:49
Example of the thing we are talking about
<div class="container">
<!-- Your image here -->
<div class="col-md-12">
<img src="path/to/img" alt="Picture of Liam" class="img-responsive">
</div>
<!-- The three columns here -->
<div class="col-md-4 col-xs-12">
<span>Age: </span> 99
</div>
########
#OneDriveMapper
#Copyright: Free to use, please leave this header intact
#Author: Jos Lieben (OGD)
#Company: OGD (http://www.ogd.nl)
#Script help: http://www.lieben.nu, please provide a decrypted Fiddler Trace Log if you're using Native auth and having issues
#Purpose: This script maps Onedrive for Business and maps a configurable number of Sharepoint Libraries
#Enterprise users: This script is not recommended for Enterprise use as no dedicated support is available. Check www.lieben.nu for enterprise options.
#TODO:
<table cellpadding="0" cellspacing="0" border="0" style="width: 462px;">
<tbody><tr>
<td style="padding-bottom: 5px;">
<table cellpadding="0" cellspacing="0" border="0">
<tbody><tr style="">
<td style="padding-bottom: 5px;"><a href="https://www.voltacompliance.com"><img id="TemplateLogo" data-class="external" src="http://www.voltacompliance.com/wp-content/uploads/2017/09/logo.png" alt="Your Company" style="display: block"></a></td>
</tr>
<tr>
<td style="padding-bottom: 5px; font-family: Arial; font-size: 12pt; color: rgb(51, 51, 51);"><font style="color: #333333; font-size: 12pt; font-family: Arial">Richard Carr</font><font style="color: #333333; font-size: 12pt; font-family: Arial">&nbsp;|&nbsp;</font><font style="color: #333333; font-size: 12pt; font-family: Arial">Director</font></td>
</tr>
@chrisvasey
chrisvasey / build.ps1
Created April 26, 2018 12:44
LLPR Build
# If the script won't run try pasting this into the console: Set-ExecutionPolicy unrestricted
echo "Starting script"
$officeNeeded = ""
while ($officeNeeded -notmatch "[y|n]"){
$device = read-host "Do you want to install Office2016? (Y/N)"
}
Function InstallOffice
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "[email protected]",
# nginx-wp-common.conf
#
# Contains a common configuration for use by nginx on a WordPress
# installation. This file should be included in any WordPress site
# nginx config with the following line:
#
# include /etc/nginx/nginx-wp-common.conf;
#
# See local-nginx-example.conf-sample for a full example
location / {