See http://stackoverflow.com/questions/35657098/add-dependency-in-webpack-plugin
#!/bin/bash | |
web_service='nginx' | |
config_file="/opt/letsencrypt/settings.ini" | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
if [ ! -f $config_file ]; then | |
echo "[ERROR] config file does not exist: $config_file" |
[1,2,3].map(x => x+1) | |
// [2, 3, 4] | |
[1,2,3].map(x => [x+1]) | |
// [[2], [3], [4]] | |
[1,2,3].chain(x => [x+1]) | |
// [2, 3, 4] | |
[1,[2],3].chain(x => [x+1]) |
<?php | |
$fontTypes = array('woff2', 'woff', 'ttf', 'svg', 'eot'); | |
$gFontURL = 'http://fonts.googleapis.com/css?family='; | |
$uaFonts = array( | |
'woff2' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36', | |
'woff' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.1.76908; WOW64; en-US)', | |
'ttf' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', | |
'svg' => 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10', |
# Remove all stopped containers | |
docker rm $(docker ps -a | grep "Exited" | cut -d " " -f1) | |
# Remove all images | |
docker rmi $(docker images | tail -n +2 | awk '{ print $3; }') | |
# Stop all containers except docker-registry | |
docker stop $(docker ps -a | grep -v "docker-registry" | tail -n +2 | cut -d " " -f1) | |
# Remove all containers except docker-registry |
Google Search doesn't give you a lot of query flexibility. The tradeoff of course is that you get to search the entire web in milliseconds.
- MIT has a great cheatsheet of search operators.
- Dan Russell, a search scientist at Google, maintains the Search Research blog, which is full of interesting challenges and tips about changes to Google's search functionality.
- If you don't like memorizing the keywords, Google has a useful-enough advanced search interface.
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare [email protected]:usi-systems/easytrace.git
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
With the variety of server-side technologies today, developers have a lot of choices when it comes to deciding what kind of backend to use for their next application.
In this article, we want to explore the differences between GraphQL and Firebase, two very popular server-side technologies.
Before diving into technical details, let's create some perspective on the two technologies and where they're coming from.