|def unique_names(names1, names2):|
|# rubah ke set, dan jadi unique values|
|first_set = set(names1)|
|second_set = set(names2)|
|second_only = second_set - first_set # yang cuma ada di list kedua|
|combined = names1 + list(second_only) # gabung lagi sama yg pertama|
|unique_list = list(set(combined)) # pastiin unique buat edge cases di tiap list ada duplikat|
|SELECT name FROM employees|
|WHERE id NOT IN(SELECT managerId FROM employees WHERE managerId IS NOT NULL)|
|Allow from all|
|# FROM https://github.com/FusionAuth/fusionauth-containers/tree/master/docker/fusionauth/fusionauth-app/Dockerfile|
|# FusionAuth Dockerfile|
|# Example use: docker build -t fusionauth .|
|# Once built, to start: docker run -p 9011:9011 -it fusionauth|
|LABEL description="Create an image running FusionAuth with embedded search engine. \|
|Installs FusionAuth Search, FusionAuth App"|
Web Design Contract
Based on Contract Killer, an open-source contract for web developers.
I’ll always do my best to fulfill your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I have no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.
So in short;
You ([CLIENT COMPANY]), located at [CLIENT ADDRESS] are hiring me ([DEVELOPER]) located at [DEVELOPER ADDRESS] to design and develop a web site for the estimated total price of [QUOTE] as outlined in our previous correspondence.
|## backup each mysql db into a different file, rather than one big file|
|## as with --all-databases. This will make restores easier.|
|## To backup a single database simply add the db name as a parameter (or multiple dbs)|
|## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is|
|## Create the user and directories|
|# mkdir -p /var/backups/mysql/databases|
|# useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup|
|## Remember to make the script executable, and unreadable by others|
OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment
Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.