- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
from PIL import Image, ImageFont, ImageDraw | |
import glob | |
import os | |
import re | |
import time | |
"""""" | |
dir_to_watch_name = './to_watch' | |
watch_every = 10 |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
<?php | |
// src/App.php | |
namespace Example; | |
class App | |
{ | |
public function redirect($url) | |
{ | |
header('Location: ' . $url, true, 302); | |
die(); |
KUTT_HOST="https://kutt.it" | |
KUTT_API_KEY="API_KEY" | |
kutt() { | |
if [[ "$1" == "delete" ]] && [[ -n "$2" ]]; then | |
curl -s -H "X-API-KEY: $KUTT_API_KEY" \ | |
-X DELETE \ | |
"$KUTT_HOST/api/v2/links/$2" | jq | |
elif [[ -z "$1" ]]; then | |
curl -s -H "X-API-KEY: $KUTT_API_KEY" \ | |
"$KUTT_HOST/api/v2/links" | jq |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
<?php | |
/* | |
Need to encode given (finished) path and query?, for example | |
'http://example.org:port/path1/path2/data?key1=value1&argument#fragment' (1) | |
or 'scheme://user:[email protected]:port/path1/path2/data?key1=value1&key2=value2#fragment' (2) | |
e.g. this (2) should be encoded: | |
'scheme://'.rawurlencode('user').':'.rawurlencode('password').'@example.com:port/' | |
.rawurlencode('path1').'/'.rawurlencode('path2').'/'.rawurlencode('data') | |
.'?'.htmlentities(urlencode('key1').'='.urlencode('value1').'&'.urlencode('key2').'='.urlencode('value2')) |
# https://gist.github.com/timabell/bc90e0808ec1cda173ca09225a16e194 | |
# MIT license | |
$exts=@( | |
"csv", | |
"csproj", | |
"json", | |
"log", | |
"md", | |
"patch", | |
"sql", |
<?php | |
/** | |
* File: apigen-hooks.php | |
* | |
* NOTE: this code is used internally in WPGlobus project. | |
* It's a W.I.P. - please use it, but do not forget to adapt for your project. | |
* | |
* @package WPGlobus\APIGen | |
* @author Gregory Karpinsky (@tivnet) | |
*/ |
Note: If you want to use your personal Twitter account to post commits, go to Step 2