This is an alias (with typings) of Laravel Sail for NuShell.
- place the file in a config directory of choice (i.e.,
~/.config/nushell
) - source the file in
config.nu
:source ~/.config/nushell/sail.nu
// ==UserScript== | |
// @name Asana - Copy Unique URL | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Shows the truly unique URL of the Asana task | |
// @author Radoslaw Mejer <radmen [at] radmen.info> | |
// @match https://app.asana.com/0/*/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// @run-at document-idle |
This is an alias (with typings) of Laravel Sail for NuShell.
~/.config/nushell
)config.nu
:
source ~/.config/nushell/sail.nu
Little code snippet inspired by Freek and others. Most likely, almost a copy of their implementation. I'm using this a lot in recent projects, so I'd like to keep it easily accessible.
Scope supports:
This is a simple example of injecting a different package using the lock file.
yarn
command will install boolean
in place of ms
.
#!/usr/bin/env bash | |
INTERFACE=$1 | |
STATUS=$2 | |
# Make sure we're always getting the standard response strings | |
LANG='C' | |
case "${INTERFACE}-${STATUS}" in | |
tun0-up) |
const deepEql = require('deep-eql') | |
const input = require('./input.json') | |
const output = require('./output.json') | |
const groupByDate = (messages) => messages.reduce( | |
(carry, message) => { | |
const copy = Array.from(carry) | |
const tail = copy.pop(); | |
const groupDate = new Date(message.created_at).getDate(); |
This simple Bash function will post a short message to #afk
Slack channel.
After posting the message it will wait for user interaction on which it will post a message that the user returned.
To run it:
TOKEN
variable.bash_aliases
) function from afk.sh
file#!/usr/bin/env python | |
import argparse | |
import os | |
parser = argparse.ArgumentParser(description='Export selected env variables.') | |
parser.add_argument('name', nargs='+', | |
help='name of env variable') |