- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3 - Connect to it from a client, e.g.
netcator similar:nc localhost 9000
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
| (cors) { | |
| @cors_preflight method OPTIONS | |
| header { | |
| Access-Control-Allow-Origin "{header.origin}" | |
| Vary Origin | |
| Access-Control-Expose-Headers "Authorization" | |
| Access-Control-Allow-Credentials "true" | |
| } |
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
| { | |
| "input": { | |
| "blocklist": [], | |
| "compressor#0": { | |
| "attack": 5.0, | |
| "boost-amount": 6.0, | |
| "boost-threshold": -72.0, | |
| "bypass": false, | |
| "dry": -100.0, | |
| "hpf-frequency": 10.0, |
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 | |
| URL=$1 | |
| DOMAIN=$(echo "$URL" | awk -F[/:] '{print $4}') | |
| ## Domain starts with | |
| if [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-start.txt)\)$) ]]; then | |
| chromium-browser "$URL" & disown | |
| elif [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-is.txt)\)$) ]]; then | |
| firefox "$URL" & disown |
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
| #!/usr/bin/env node | |
| /** | |
| * Flowtype understands Node (or Haste) imports but not Webpack. | |
| * | |
| * Many codebases have webpack set up like: | |
| * src/foo.js | |
| * src/components/Bar.jsx | |
| * | |
| * And then import them like `require('foo')` or `require/components/Bar.jsx` | |
| * |
So basically FlowType doesn't know about CSS Modules, a really handy way of dealing with the plagues of CSS in codebases (global variables and dependency wackiness mainly).
What WebPack allows us to do is "require" CSS files and use their class names:
import styles from "my_styles.css";
import React from "react";
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
| //@flow | |
| const { | |
| readdirSync, | |
| outputFileSync, | |
| pathExistsSync, | |
| //$todo | |
| readFileSync, | |
| } = require('fs-extra') |
lxc.init_cmd = /sbin/init systemd.legacy_systemd_cgroup_controller=yes
config:
raw.lxc: lxc.init_cmd = /sbin/init systemd.legacy_systemd_cgroup_controller=yes
NewerOlder