- 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.
netcat
or similar:nc localhost 9000
#!/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 |
#!/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";
//@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
Erik August 9, 2014 at 5:07 am
Actually, this is the incorrect setting for your issue! (That setting only affects purely PCI Express devices, such as Graphics Cards) It is actually the "AHCI Link Power Management β HIPM/DIPM" Power Options setting which is changed from HIPM (Balanced) to Active (High Performance). This setting, by default, is HIDDEN inside of the advanced power settings menu. In order to expose it (as well as transition time setting from "Partial" hard disk state to "Slumber" hard disk state; "AHCI Link Power Management β Adaptive"), you must go inside the registry to both:
- HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPowerPowerSettings012ee47-9041-4b5d-9b77-535fba8b1442b2d69d7-a2a1-449c-9680-f91c70521c60 and change the "Attributes" key value from 1 (default; hidden) to 2 (exposed). [This will expose "AHCI Link Power Management β HIPM/DIPM" under Hard Disk power settings]
- HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPowerPowerSettings012ee47-9041-4b5d-9b77-535fba8b1442dab60367-5
# Maintainer: Aleksey Kamenskikh <[email protected]> | |
pkgname=mssql-server | |
pkgver=14.0.500.272 | |
_prodver=${pkgver}-2 | |
pkgrel=1 | |
pkgdesc="Microsoft SQL Server for Linux" | |
arch=('x86_64') | |
url="https://www.microsoft.com/en-us/sql-server/sql-server-vnext-including-Linux" | |
license=('unknown') | |
depends=(python2-configparser numactl libopenssl-1.0-compat) |