Skip to content

Instantly share code, notes, and snippets.

Jake Bathman jakebathman

Block or report user

Report or block jakebathman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sbine
sbine / .phpcs.xml
Last active Mar 6, 2019 — forked from loganhenson/.phpcs.xml
.phpcs.xml in your home directory (`cd ~`)
View .phpcs.xml
<?xml version="1.0"?>
<ruleset name="Laravel Standards">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument. The description tag below is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->
<description>The Laravel Coding Standards</description>
@adamwathan
adamwathan / 1-add-macros.php
Last active Sep 19, 2019
Multiformat Endpoints in Laravel
View 1-add-macros.php
<?php
namespace App\Providers;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\ServiceProvider;
use App\Http\Middleware\CaptureRequestExtension;
class AppServiceProvider extends ServiceProvider
@davidpiesse
davidpiesse / tailwind_md_all_colours.js
Last active Sep 11, 2019
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
View tailwind_md_all_colours.js
// https://davidpiesse.github.io/tailwind-md-colours/
//
//Notes
//
//All colours are generated from Material Design Docs
//Colours have a base, a set of shades (50-900) accent colours
//In addition a companion set of contrast colours are included for colouring text / icons
// Example usage
// class="w-full bg-red-600 text-red-600-constrast"
@calebporzio
calebporzio / timer_helpers.php
Last active Aug 18, 2019
A simple helper function and macro for timing php scripts and eloquent queries
View timer_helpers.php
<?php
// Helper function.
if (! function_exists('timer')) {
function timer($expression)
{
$start = microtime(true);
if ($expression instanceof Closure) {
$expression();
@chadmayfield
chadmayfield / hashcat_macos.sh
Created Jun 2, 2017
Install Hashcat on macOS
View hashcat_macos.sh
#!/bin/bash
git clone https://github.com/hashcat/hashcat.git
mkdir -p hashcat/deps
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat/deps/OpenCL
cd hashcat/ && make
./hashcat --version
./hashcat -b -D 1,2
./example0.sh
@Decicus
Decicus / setmulti_with_kadgar.md
Last active Jul 12, 2018
Miscellaneous Nightbot commands using variables
View setmulti_with_kadgar.md

Usage

!setmulti <streams> where <streams> is just the channel names for the ones you're streaming with, separated by a space between every channel.

Command

!commands add -a=!commands !setmulti edit !multi http://kadgar.net/live/$(channel)/$(eval const streams = '$(query)'.split(" ");streams.join("/");)

@DrewML
DrewML / slack-slashes.md
Created May 1, 2016
"Secret" Slack slash commands
View slack-slashes.md

"Secret" Slack Slash Commands

Enable Web Inspector

/macgap.app.enabledevelopertools()

Assign a color (using hex code) to any users name

/color andrew #000000

Change Status (Doesn't seem to work)

/status

@tzmartin
tzmartin / ios.settings.schemes.md
Created Jan 13, 2016
iOS Settings URL Scheme List
View ios.settings.schemes.md

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness
@MattCheetham
MattCheetham / siri_homekit_colours.txt
Last active Aug 30, 2019
Siri HomeKit Light Colours
View siri_homekit_colours.txt
// A list of all colours that Siri understands when controlling light bulbs. E.g. "Hey Siri, set the bedroom lights to red"
// Please contribute any that you have come accross
Blue
Red
Green
Yellow
White
Champagne
Direct Sunlight
@joepie91
joepie91 / vpn.md
Last active Oct 19, 2019
Don't use VPN services.
View vpn.md

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

A Russian translation of this article can be found here, contributed by Timur Demin. There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Why not?

You can’t perform that action at this time.