Skip to content

Instantly share code, notes, and snippets.

@lrvick
lrvick / github-troll.md
Last active Apr 18, 2021
Trolling Github's DMCA repo with their own security flaws.
View github-troll.md
@Treeki
Treeki / TurnipPrices.cpp
Last active May 4, 2021
AC:NH turnip price calculator
View TurnipPrices.cpp
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@cliss
cliss / Brewfile
Created Oct 8, 2019
Casey Liss's Brewfile, as of 8 October 2019
View Brewfile
cask_args appdir: "/Applications"
tap "homebrew/cask-fonts"
brew "mas"
mas "1Blocker", id: 1107421413
mas "Day One", id: 1055511498
mas "Deliveries", id: 924726344
mas "Due", id: 524373870
mas "Fantastical", id: 435003921
@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 Nov 8, 2020
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 Mar 30, 2021
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