The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
sudo docker run -d \ | |
-v /proc:/host/proc:ro \ | |
-v /sys:/host/sys:ro \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /opt/netdata/overrides:/etc/netdata/override \ | |
-p 19999:19999 \ | |
-m 50M \ | |
-e SMTP_SERVER=server \ | |
-e SMTP_TO=email \ | |
-e SMTP_USER=user \ |
@mixin res($key, $map: $--breakpoints) { | |
// 循环断点Map,如果存在则返回 | |
@if map-has-key($map, $key) { | |
@media only screen and #{inspect(map-get($map, $key))} { | |
@content; | |
} | |
} @else { | |
@warn "Undefeined points: `#{$map}`"; | |
} | |
} |
Series: | |
{n.space('.').colon('-').replaceAll(/[!?.]+$/).replaceAll(/&/, 'and').replaceAll(/[`´‘’ʻ']/).replaceAll(/\*/, '-').replaceTrailingBrackets('$1')}.{s00e00}.{t.space('.').colon('-').replaceAll(/[!?.]+$/).replaceAll(/&/, 'and').replaceAll(/[`´‘’ʻ']/).replaceAll(/\*/, '-').replaceTrailingBrackets('$1')} | |
Movies: | |
{n.colon(' - ')} ({y}) |
These rules are adopted from the AngularJS commit conventions.
# Build | |
FROM node:latest as build-env | |
ENV NODE_ENV production | |
WORKDIR /src | |
COPY . . | |
RUN yarn install \ |
Configure local wildcard DNS server
Install Dnsmasq:
sudo apt-get install dnsmasq
Since Ubuntu's NetworkManager uses dnsmasq, and since that messes things up a little for us, open up /etc/NetworkManager/NetworkManager.conf
and comment out (#
) the line that reads dns=dnsmasq
.
Restart NetworkManager afterwards: sudo systemctl restart NetworkManager
.
Make sure Dnsmasq listens to local DNS queries by editing /etc/dnsmasq.conf
, and
adding the line listen-address=127.0.0.1
.
you can fix this by adding the env variable in the launch file:
nano /usr/share/applications/megasync.desktop
and then replace Exec=megasync
with Exec=env QT_SCALE_FACTOR=1 megasync
remove the TryExec line and save. you can then copy the megasync.desktop launch file to your autostart folder, e.g.:
swipe: | |
3: | |
left: | |
command: 'xdotool key ctrl+super+Left' | |
right: | |
command: 'xdotool key ctrl+super+Right' | |
up: | |
command: 'xdotool key ctrl+t' | |
threshold: 1.5 | |
down: |