Skip to content

Instantly share code, notes, and snippets.

@BitBy73Bit
BitBy73Bit / elsevier-harvard-ucl.csl
Created October 10, 2018 08:12
UCL variant on the Harvard referencing style
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US">
<info>
<title>Elsevier - Harvard (with titles)</title>
<id>http://www.zotero.org/styles/elsevier-harvard</id>
<link href="http://www.zotero.org/styles/elsevier-harvard" rel="self"/>
<link href="http://www.zotero.org/styles/ecology-letters" rel="template"/>
<link href="http://www.elsevier.com/journals/biological-conservation/0006-3207/guide-for-authors#68000" rel="documentation"/>
<author>
<name>David Kaplan</name>
@BitBy73Bit
BitBy73Bit / aws-ssh.sh
Created September 12, 2018 13:00
AWS SSH Bash Helper
#!/bin/sh
USERNAME="ec2-user"
PEMPATH="~/.ssh/ck-production-ec2.pem"
printf "\n*** AWS EC2 SSH ***\n"
if [ "$1" != "" ]; then
printf "Connecting to AWS EC2 Instance with IP: $1\n"
else
#!/bin/bash
set -e
# Update the server
yum -y update
yum -y upgrade
amazon-linux-extras install -y php7.2
yum install autoconf-2.69-11.amzn2.noarch automake-1.13.4-3.1.amzn2.noarch -y
# Install AWS Agent
<?php
namespace App\Http\Controllers\API;
use App\User;
use App\User2fa;
use App\Helpers\Notification;
use App\Helpers\AuthHelper;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Log;
use Propaganistas\LaravelPhone\PhoneNumber;
use Illuminate\Support\Facades\Mail;
use App\UserNotification;
use App\Mail\NotificationMail;
use Twilio;
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName