This file contains hidden or 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/sh | |
| # https://www.reddit.com/r/mac/comments/6jkutr/how_to_uninstall_logitech_options/ | |
| #disable | |
| launchctl unload /Library/LaunchAgents/com.logitech.manager.daemon.plist | |
| # re-enable | |
| #launchctl load /Library/LaunchAgents/com.logitech.manager.daemon.plist |
This file contains hidden or 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
| alias light='echo "tell app \"Terminal\" to set current settings of windows to settings set \"Google Light\""|osascript;' | |
| alias dark='echo "tell app \"Terminal\" to set current settings of windows to settings set \"Eighties\""|osascript;' |
This file contains hidden or 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
| find . -type f -name '*.json' | xargs -n1 -I % cat % |jq '[.finalUrl, .timing.total] ' |
This file contains hidden or 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
| let day = strftime("%w") | |
| let hour = strftime("%H") | |
| if day < 6 && day > 0 && hour > 8 && hour < 17 | |
| silent! colo base16-one-light | |
| else | |
| silent! colo peachpuff | |
| endif | |
| silent! colo pablo |
This file contains hidden or 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
| figlist |xargs -n1 -I '%I' figlet -w 120 -f %I %I |
This file contains hidden or 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
| const path = require('path'); | |
| const configBasedir = path.resolve(process.env.NVM_BIN, '..', 'lib/node_modules'); | |
| module.exports = { | |
| configBasedir, | |
| plugins: [ | |
| path.join(configBasedir, 'stylelint-no-unsupported-browser-features') | |
| ], | |
| rules: { | |
| 'plugin/no-unsupported-browser-features': [true, { | |
| ignore: ['flexbox'], |
This file contains hidden or 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
| require('dotenv').config() | |
| const debug = require('debug')('server') | |
| const express = require('express') | |
| const morgan = require('morgan') | |
| const compression = require('compression') | |
| const app = express() | |
| app.set('env', process.env.NODE_ENV) | |
| app.set('port', process.env.PORT) |
This file contains hidden or 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 | |
| # This is how to sign a Cloudinary API request from bash | |
| URL="https://api.cloudinary.com/v1_1/thedailybeast/image/upload" | |
| API_KEY=574791189343157 | |
| API_SECRET=abcd | |
| DATE=$(date +%s) | |
| SHA=$(echo -n "overwrite=false×tamp=${DATE}&unique_filename=false&upload_preset=zcjiokbi&use_filename=true${API_SECRET}" | shasum -a 1 | awk '{print $1}') | |
| FILE="http://cdn.thedailybeast.com/content/dam/dailybeast/2017/02/23/170223-Vox-homeopathic-drug-tease.jpg" |
This file contains hidden or 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
| const VERTICAL_SLUG_FORMAT = /^([a-zA-Z0-9]+-)*[a-zA-Z0-9]+$/; |
This file contains hidden or 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
| var a = Array(36).fill(true).map(() => Math.random().toString(36).slice(2)) |