Skip to content

Instantly share code, notes, and snippets.

View ahinkle's full-sized avatar
🌪️

Andy Hinkle ahinkle

🌪️
View GitHub Profile
import React from 'react';
type Props = {
data: Array<[number, string]>;
};
export default function LineChart({ data }: Props) {
if (!data.length) {
return null;
}
@stefanzweifel
stefanzweifel / push.yml
Last active August 27, 2019 19:57
Example Configuration to run phpunit for a Laravel App on GitHub Actions
on: push
name: Run phpunit testsuite
jobs:
phpunit:
runs-on: ubuntu-latest
# container:
# image: lorisleiva/laravel-docker:7.3
steps:
- uses: actions/checkout@v1
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active April 9, 2024 14:08
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@kamermans
kamermans / fail2ban-allstatus.sh
Created July 11, 2011 17:06
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done