Taken from Google Support on Nov 16, 2018.
What you can search by | Search operator and example |
---|---|
Specify the sender | from: Example: from:amy |
Specify a recipient | to: Example: tso:david |
#!/usr/bin/env bash | |
# Retrieves the mime type, e.g. 'image/png' | |
mime=$(file -bN --mime-type "$1") | |
# Converts the file itself to Base64 | |
content=$(base64 -b0 < "$1") | |
printf "url('data:%s;base64,%s')\n" $mime $content |
#!/usr/bin/env node | |
// Displays some basic information about the Node project in this directory. | |
// Example output: | |
// | |
// msikma-lib-projects (1.0.0) <https://github.com/msikma/msikma-lib-projects> | |
// Monorepo container for msikma-lib-projects, containing a number of client libraries | |
// Last commit: 2018-10-14 22:29:35 +0200 (63 minutes ago) | |
// | |
// lerna | bootstrap |
// ==UserScript== | |
// @name iSakura TV - Auto next program | |
// @namespace http://webtv.jptvpro.net/ | |
// @version 0.1 | |
// @description Automatically activates the next program when your current one finishes playing. | |
// @author Michiel Sikma <[email protected]> | |
// @match http://webtv.jptvpro.net/play.html | |
// @grant none | |
// ==/UserScript== |
Taken from Google Support on Nov 16, 2018.
What you can search by | Search operator and example |
---|---|
Specify the sender | from: Example: from:amy |
Specify a recipient | to: Example: tso:david |
#!/usr/bin/env node | |
const { execSync, spawn, exec } = require('child_process') | |
// Pass '0', '1' or '2' as only argument. | |
const type = Math.max(Math.min(process.argv[2] ? parseInt(process.argv[2], 10) : 0, 2), 0) | |
console.log('Type', type) | |
// Note: executing 'command' which outputs more than 8192 characters of data. |
#!/usr/bin/env fish | |
# Floppy imaging script for OSX | |
# Requires gdd, diskutil and python (either 2 or 3). | |
# | |
# Waits until a new floppy is inserted, then automatically images it to | |
# the indicated directory. Set the directory in $FLOPPY_IMAGING_PATH. | |
# | |
# We will calculate the CRC32 of the first 500 bytes of the floppy | |
# as part of the filename, along with the floppy partition name. |
#!/usr/bin/env bash | |
# This script displays the last 25 "issue branches" in order of last commit. | |
# An issue branch is a Git branch in the following format: bugfix/CMS2-123-fix-something, | |
# task/CMS2-234-new-feature, hotfix/CMS2-345-fix-crash, etc. | |
# | |
# These branches are displayed in a nice format with link to the Jira issue. | |
# Non issue branches (develop, master, etc.) are not displayed. | |
# | |
# Each issue branch line has the following format: |
function check_node_project \ | |
--description 'Display project info if we changed to a Node project directory' \ | |
--on-variable dirprev | |
# Don't display project info if: | |
status --is-command-substitution; # this is command substitution \ | |
or not test -f ./package.json; # there's no package.json \ | |
or [ (count $dirprev) -lt 2 ]; # we've just opened a new Terminal session \ | |
# Uncomment this if you only want the project info to be shown when coming from a lower directory. | |
# or [ (count (string split $PWD $dirprev[-1])) -eq 2 ]; # we came from a lower directory in the hierarchy \ |
function check_node_project \ | |
--description 'Display project info if we changed to a Node project directory' \ | |
--on-variable dirprev | |
# Don't display project info if: | |
status --is-command-substitution; # this is command substitution \ | |
or not test -f ./package.json; # there's no package.json \ | |
or [ (count $dirprev) -lt 3 ]; # we've just opened a new Terminal session \ | |
or [ (count (string split $PWD $dirprev[-1])) -eq 2 ]; # we came from a lower directory in the hierarchy \ | |
and return |
[2018-05-12 01:35:16] Debug: EasyRPG Player 0.5.3 started | |
[2018-05-12 01:35:16] Debug: ============================ | |
[2018-05-12 01:35:16] Debug: CLI: | |
[2018-05-12 01:35:16] Debug: Opened audio at 44100 Hz (stereo), format: S16LSB | |
[2018-05-12 01:35:16] Debug: Detected encoding: UTF-8 | |
[2018-05-12 01:35:16] Debug: Using /Users/msikma/Games/__/FFXAT/ as Game and Save directory | |
[2018-05-12 01:35:16] Debug: Loading game FF-XAT | |
[2018-05-12 01:35:16] Debug: Using RPG2k Interpreter | |
[2018-05-12 01:35:16] Debug: RPG2k < v1.50 / RPG2k3 < v1.05 detected | |
[2018-05-12 01:35:16] Debug: Engine configured as: 2k=1 2k3=0 2k3Legacy=0 MajorUpdated=0 Eng=0 |