Skip to content

Instantly share code, notes, and snippets.

Avatar
🌚
Dark mode propaganda account

Alex Vanderbist AlexVanderbist

🌚
Dark mode propaganda account
View GitHub Profile
@mindplay-dk
mindplay-dk / ubuntu.md
Last active Feb 27, 2021
Ubuntu on Windows
View ubuntu.md

Introduction

⚠️ I am no longer actively maintaining this. ⚠️

With the Windows 10 Creators Update comes an awesome new opportunity to run a lighweight Ubuntu Linux environment as a subsystem of Windows. This is officially known as Windows Subsystem for Linux (WSL) or Bash on Windows.

This is great news for PHP developers using Windows - we can now get access to native Linux builds of PHP, PECL extensions, ImageMagick, NGINX and other server components and tools, without having to migrate to a Linux desktop environment!

In this guide, we'll get you set up with WSL itself, a working PHP 7.4 environment with OpCache, XDebug and task/terminal integration with Php Storm, and working NGINX configuration - as well as various tools, including PEAR/PECL, Composer and Node.JS.

@martpie
martpie / keymap.cson
Last active Oct 7, 2021
Get emmet-atom working fine with Atom and autocomplete-plus
View keymap.cson
# Will make autocomplete trigger with 'enter' instead of 'tab'
'atom-text-editor:not(mini) .autocomplete-plus.autocomplete-suggestion-list':
'tab': 'unset!'
'enter': 'autocomplete-plus:confirm'
# Use 'expand-abbreviation' instead of 'expand-abbreviation-with-tab' for tab keybinding
'.pane .editor:not(.mini)':
'tab': 'emmet:expand-abbreviation'
View Sitecom N300 adapter (WLA-2100)
echo 'install 8192cu /sbin/modprobe --ignore-install 8192cu; /bin/echo "0df6 0077" >| /sys/bus/usb/drivers/rtl8192cu/new_id' | sudo tee /etc/modprobe.d/8192cu.conf
sudo echo "8192cu" >> /etc/modules
@carbontwelve
carbontwelve / usefull_commands.sh
Last active Jun 24, 2021
Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
View usefull_commands.sh
# Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
php -dxdebug.remote_autostart artisan
#Running phpcs for 5.3:
phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* .
@gre
gre / easing.js
Last active Oct 17, 2021
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity