All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
| alias λ proc | |
| alias _l proc | |
| class Object | |
| def cnd(t:λ{},f:λ{}) | |
| t[] | |
| end | |
| end | |
| class NilClass |
| /** | |
| * This gulpfile will copy static libraries and a index.html file as well as | |
| * merge, babelify and uglify the rest of the javascript project. | |
| * | |
| * TODO: | |
| * - Separate media, libs and src with different watchers. | |
| * - Media and libs should only be copied to dist if they are different sizes. | |
| * | |
| * The expected project is to be laid out as such: | |
| * |
| # This would go into .bash_profile, .bashrc, .zshrc, etc. | |
| # Script to start the gpg-agent - in it's own file as it is also used when the machine starts up | |
| # Be sure to update the path to wherever you place this file! | |
| # Note, depending on shell you may not need this line enabling, if the global daemon is already running | |
| # OK. Some shells complain, others don't! | |
| ~/bin/startup-gpg-agent.sh | |
| # GPG | |
| if [ -f "${HOME}/.gpg-agent-info" ]; then |
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.
To grab the new archive, simply run:
| /* jshint node: true */ | |
| const EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
| const generateWhitelabelIndexes = require('./generate-whitelabel-indexes'); | |
| module.exports = function(defaults) { | |
| const app = new EmberApp(defaults, { | |
| // ...all sorts of config | |
| }); |
| #!/bin/env python3 | |
| # https://www.bleepingcomputer.com/news/security/researcher-hacks-over-35-tech-firms-in-novel-supply-chain-attack/ | |
| # The following script finds all package.json files in the current dir and checks if there are referenced any | |
| # dependencies that no public package is available for, making your application vulnerable to supply-chain attack. | |
| # Simply run ./packagejson.py in your root repository direcotory. | |
| import json | |
| import requests | |
| from pathlib import Path | |
| import urllib.parse |