Add to ~/.ssh/config
:
Host *
# Enable persistent connection multiplexing
ControlMaster auto
ControlPath ~/.ssh/-%r@%h:%p
ControlPersist 600
Note: This originates from: https://forum.synology.com/enu/viewtopic.php?f=258&t=107508&sid=78d911737c5ecea1f9087bdab13612bf&start=15#p478281
Here are steps that I have modified to work for me. This assumes you have a shared folder named "docker" in volume1
.
We need to Symlink /var/run/docker.sock
to /volume1/docker/docker.sock
, because Synology Docker GUI will not be able to run it when it's pointed directly to /var/run/docker.sock
. Also the symlink needs to persist after reboot. To make it do so, you will need to create an automated task in your Synology DSM via "Task Scheduler".
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
npm i -D eslint eslint-config-airbnb babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-native eslint-plugin-import eslint-plugin-jsx-a11y
from your project root."extends": "airbnb"
to your .eslintrc and "plugins": [ "babel", "react", "react-native", "jsx-a11y" ]
apm install linter-eslint
this also installs linter
which clashes with nuclide diagnosticsprint("UPDATE AUG 2023: this script is beyond old and broken") | |
print("You may find interesting and more up to date resources in the comments of the gist") | |
exit() | |
from slacker import Slacker | |
import json | |
import argparse | |
import os | |
# This script finds all channels, private channels and direct messages |
require 'yaml' | |
require 'json' | |
require 'bundler/inline' | |
gemfile _install=true do | |
source 'https://rubygems.org' | |
gem 'pry' | |
gem 'puma' | |
gem 'sinatra', require: 'sinatra/base' |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
#!/usr/bin/env bash | |
curl -s -H 'Accept: application/vnd.github.drax-preview+json' \ | |
https://api.github.com/orgs/scoremedia/repos?per_page=100 | \ | |
grep -A1 '"license"' | grep '"key"' | cut -d'"' -f4 | \ | |
sort | uniq -c | |
# 5 apache-2.0 | |
# 1 bsd-3-clause | |
# 2 cc0-1.0 |
#How to transition from EasySIMBL to SIMBL
( ~
is your home directory )
Use SIMBL
checkbox. Quit EasySIMBL.~/Library/ScriptingAdditions/EasySIMBL.osax
if exists.SIMBL
directory and EasySIMBL.osax
located in ~/Library/Containers/
is not needed. Find from Finder or find command like find ~/Library/Containers -name "*SIMBL*" -ls
and remove manually if exists.