Follow these steps:
if [ -f test ]; then
echo "exists!"
else
echo "missing!"
fi
#!/bin/bash | |
HEIGHT=15 | |
WIDTH=40 | |
CHOICE_HEIGHT=4 | |
TITLE="Deploy fundraising apps" | |
MENU="Choose one of the following options:" | |
OPTIONS=(T "Fundraising Frontend TEST " | |
L "Fundraising Frontend LAIKA SKIN" |
Follow these steps:
if [ -f test ]; then
echo "exists!"
else
echo "missing!"
fi
Node dependencies:
--- | |
kind: pipeline | |
type: docker | |
name: default | |
steps: | |
- name: deploy | |
image: wikimediade/fundraising-ansible-deploy | |
pull: never # Until we publish the image | |
user: ansible |
<?php | |
// This example shows: | |
// 1) How to invert the dependency of initialization of factories in dependent | |
// modules by giving a callable. This will defer the initialization of the | |
// dependency. | |
// 2) How to use a closure inside of a class as a callable. Notice how accessing | |
// "$this->presenter" gives the current presenter, not the one that was stored | |
// when the closure was created. |
ls_home>show home> ls ~ | |
ranger> > ranger | |
config_nvim>Configure NVim> vim -c "cd ~/.config/nvim" ~/.config/nvim/init.vim | |
# vim: set list listchars:tab=>- noexpandtab tabstop=15 | |
~ |
#!/bin/bash | |
# A script for use with fzf in a nvalt-like setting | |
# (Either selecting a file or creating a new one) | |
# Use like this: fzf --bind "enter:execute(./vimquery {q} {})+abort" | |
if [ -z "$2" ]; then | |
if [ ! -z "$1" ]; then | |
vim "$1.md" | |
fi |
<?php | |
// This example shows how to override implementations without subclassing, | |
// using anonymous classes and traits. | |
interface Animal { | |
public function makeSound(): string; | |
public function move(): string; | |
} |
#!/usr/bin/env php | |
<?php | |
if (!empty($argv[1])) { | |
$data = (string)$argv[1]; | |
} elseif (!stream_isatty(STDIN)) { | |
$data = stream_get_contents(STDIN); | |
} else { | |
echo "Usage: $argv[0] <base64_encoded_serialized_data>\n"; | |
exit(1); |