tslint-config-prettier helps
List of tslint dev-dependencies:
"tslint": "^5.12.1",
"tslint-config-airbnb": "^5.11.1",
"tslint-plugin-prettier": "^2.0.1",
"tslint-react": "^3.6.0",
#!/usr/bin/env python3 | |
import sys | |
import json | |
import subprocess | |
direction=bool(sys.argv[1] == 't' or sys.argv[1] == 'T') | |
swaymsg = subprocess.run(['swaymsg', '-t', 'get_tree'], stdout=subprocess.PIPE) | |
data = json.loads(swaymsg.stdout) | |
current = data["nodes"][1]["current_workspace"] |
tslint-config-prettier helps
List of tslint dev-dependencies:
"tslint": "^5.12.1",
"tslint-config-airbnb": "^5.11.1",
"tslint-plugin-prettier": "^2.0.1",
"tslint-react": "^3.6.0",
https://aka.ms/aspnetcore-makeover
const axios = require('axios') | |
/* ... */ | |
const params = new URLSearchParams() | |
params.append('name', 'Akexorcist') | |
params.append('age', '28') | |
params.append('position', 'Android Developer') | |
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
params.append('awesome', true) |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
# See http://pacha.hk/2017-07-15_gnu_nongnu_homebrew.html | |
# XCode CLT | |
xcode-select --install | |
# Update Homebrew and add formulae | |
brew update | |
# Check for broken dependencies and/or outdated packages | |
brew doctor |
#!/bin/bash | |
# This bash script outputs the status of your Pi and checks whether you are being throttled for undervoltage and gives you your temperature | |
# Article and discussion at https://jamesachambers.com/measure-raspberry-pi-undervoltage-true-clock-speeds/ | |
# Author James A Chambers 6-6-17 | |
# Output current configuration | |
vcgencmd get_config int | egrep "(arm|core|gpu|sdram)_freq|over_volt" | |
# Measure clock speeds | |
for src in arm core h264 isp v3d; do echo -e "$src:\t$(vcgencmd measure_clock $src)"; done |
A lot of people run into the problem of running Let's Encrypt's CertBot Tool and an NGINX on the same container host. A big part of this has to do with CertBot needing either port 80 or 443 open for the tool to work as intended. This tends to conflict with NGINX as most people usually use port 80 (HTTP) or 443 (HTTPS) for their reverse proxy. Section 1 outlines how to configure NGINX to get this to work, and Section 2 is the Docker command to run CertBot.
I use Docker Compose (docker-compose) for my NGINX server. My docker-compose.yml file looks something like this:
//from http://www.saltycrane.com/blog/2015/12/switching-emacs-vim-actually-spacemacs/ | |
Useful Spacemacs commands | |
SPC q q - quit | |
SPC w / - split window vertically | |
SPC w - - split window horizontally | |
SPC 1 - switch to window 1 | |
SPC 2 - switch to window 2 | |
SPC w c - delete current window |