Skip to content

Instantly share code, notes, and snippets.

View davidnknight's full-sized avatar

David Knight davidnknight

View GitHub Profile
@RexYuan
RexYuan / desk.md
Last active November 21, 2025 01:43
A list of which standing desk companies use base from what companies
Base companies Desk companies
Jiecang Poppin, HON, Allsteel, AMQ, Enwork, Uplift, Haworth, Xybix, Hat Contract, Uncaged Ergonomics, Omnidesk, AITerminal, Fully(Herman Miller+Knoll), Funte, Desky
Kaidi LTJ Kantoormeubelen, Teknion, OFS, Friant, Varidesk, BTOD
Loctek Loctek, Flexispot(Loctek)
Timotion Backbone, Humanconnect(FLH), Motti(Timotion), Autonomous SmartDesk, Trendway, Symmetry, DEZCTOP, Steelcase
OMT-Veyhl / LogicData(Jiecang) Herman Miller, Haworth, Special T, iMovR, BTOD, DeskHaus
Linak Steelcase, Ergonofis, Ikea, Xdesk, Inwerk, Charcoal, iMovR, Buldesk, Workrite, UpDesk
Actiforce Steelcase
Conset Conset, Flexiwork
@wlkns
wlkns / .php-cs-fixer.php
Last active August 16, 2022 10:04
Laravel PHP-CS Configuration (composer require --dev friendsofphp/php-cs-fixer)
<?php
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
$finder = Finder::create()
->in([
__DIR__.'/app',
__DIR__.'/config',
__DIR__.'/database',
@wlkns
wlkns / App.vue.js
Last active December 23, 2024 11:13
Re-usable Google Maps loader (for Vite/Vue)
import { onMounted } from 'vue';
import loadMap from './load-google-map';
// In vite env make sure VITE_GOOGLE_MAPS_API_KEY= is defined.
onMounted(() => {
// Google maps API is not loaded at all
await loadMap();
// Google maps API is ready and loaded
});
@bpsib
bpsib / BBC-Radio-HLS.m3u
Last active December 7, 2025 03:44 — forked from stengland/BBC-Radio.m3u
BBC Radio Streams
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://as-hls-ww-live.akamaized.net/pool_01505109/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Xtra
http://as-hls-ww-live.akamaized.net/pool_92079267/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Dance
http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only)
http://as-hls-uk-live.akamaized.net/pool_11351741/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 2
@loilo
loilo / pass-slots.md
Last active October 31, 2025 07:28
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@hacksalot
hacksalot / install-wkhtmltopdf-travis.md
Last active May 10, 2021 13:01
Install wkhtmltopdf on Ubuntu 16.04 LTS

Install the [latest wkhtmltopdf binary][1], extract it, and copy the wkhtmltopdf and wkhtmltoimage executables to /usr/bin/.

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xf  wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd ./wkhtmltox/bin/
sudo cp -R ./* /usr/bin/
wkhtmltopdf -V
@BradEstey
BradEstey / gulpfile.js
Last active May 24, 2016 15:27
Gulp Task to run PHPUnit from a Vagrant VM
var gulp = require('gulp'),
sys = require('sys'),
ssh2 = require('ssh2');
gulp.task('phpunit', function() {
var ssh = new ssh2();
ssh.on('ready', function () {
ssh.exec('cd /vagrant; phpunit', {}, function (err, stream) {
@JeffreyWay
JeffreyWay / PhotoApiTest.php
Created May 21, 2013 22:37
Testing APIs in Laravel. Thoughts?
<?php
class PhotoApiTest extends TestCase {
public function setUp()
{
parent::setUp();
Route::enableFilters();
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active August 25, 2025 12:52 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh