- johnpapa.vscode-peacock
- kruemelkatze.vscode-dashboard
- artdiniz.quitcontrol-vscode
- bmalehorn.test-switcher
- streetsidesoftware.code-spell-checker
- sysoev.vscode-open-in-github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gaedev() { | |
env_vars_args="" | |
if [ -f '.env' ]; then | |
echo "> Using .env file:" | |
# indent the env to look nicer | |
perl -pe's/^/ /' <.env | |
echo | |
env_vars_args=$(perl -pe's/^(export )?/--env_var /' <.env | perl -pe's/\n/ /') | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloClient } from 'apollo-client'; | |
import { ApolloLink } from 'apollo-link'; | |
import ApolloLinkTimeout from 'apollo-link-timeout'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { setContext } from 'apollo-link-context'; | |
import { createPersistedQueryLink } from 'apollo-link-persisted-queries'; | |
import { onError } from 'apollo-link-error'; | |
import { | |
InMemoryCache, | |
IntrospectionFragmentMatcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copied from @zeit/next-sass and modified to so that we can define AMP styles | |
// in *.amp.scss and normal styles in *.scss (excludes *.amp.scss). Normal | |
// styles are output as before; AMP styles are output to styles-amp.scss | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const cssLoaderConfig = require('@zeit/next-css/css-loader-config'); | |
const commonsChunkConfig = require('@zeit/next-css/commons-chunk-config'); | |
module.exports = (nextConfig = {}) => | |
Object.assign({}, nextConfig, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# with www prefix, ignoring protocol | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
# without www prefix, HTTP only | |
RewriteCond %{HTTPS} off |
The following happened to me with Vagrant 2.0 and VirtualBox 5.1.28, though I expect that it affects earlier versions of Vagrant, too.
When using DHCP with NFS, your initial vagrant up
might like this:
[...]
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne "1" ]; then | |
echo "Usage: `basename $0` RELEASES_DIR" | |
exit 1 | |
fi | |
diff_releases() { | |
echo "Diffing $# releases..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set windowCount to number of windows | |
set docText to "" | |
repeat with w from 1 to windowCount | |
set currentWin to window w | |
if (name of currentWin is "") or (name of currentWin is "Extensions") then | |
-- do nothing | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ag --noheading -o "Modernizr.addTest\('[a-z]+'" | sed -E 's/Modernizr\.addTest\(//' | sed -E 's/\.js\:[0-9]+/.js/' | grep -vE '^$' | uniq | sort | column -t -s ':' | |
a/download.js 'adownload' | |
ambientlight.js 'ambientlight' | |
applicationcache.js 'applicationcache' | |
audio.js 'audio' | |
audio/loop.js 'audioloop' | |
audio/preload.js 'audiopreload' | |
audio/webaudio.js 'webaudio' | |
battery.js 'batteryapi' | |
battery/lowbattery.js 'lowbattery' |
NewerOlder