This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
// via: https://dev.to/kushalst/discord-notifications-on-google-form-submission-1837 | |
var POST_URL = "discord-webhook-url"; | |
function onSubmit(event) { | |
var discordPayload = { | |
content: "Form Submission", | |
embeds: [ | |
{ | |
type: "rich", |
(function(window) { | |
var data = [ | |
{ | |
id: 71, | |
title: "FLIR City", | |
background: { | |
imageFilename: 'static-city.png', | |
overlayFilename: 'static-city-overlay.png', | |
videoFilename: 'active-city.mp4', | |
}, |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
find . -type d -print0 | xargs -0 chmod 0755 && find . -type f -print0 | xargs -0 chmod 0644 |
wget --recursive --no-clobber --page-requisites --adjust-extension --span-hosts --convert-links --no-parent --no-check-certificate -erobots=off --domains yoursite.com yoursite.com/whatever/path |
/* replaces lines 18985-19057 of HTMLPurifier.standalone.php v.4.9.3 */ | |
/** | |
* @param DOMNode $node | |
*/ | |
protected function getTagName($node) | |
{ | |
if (property_exists($node, 'tagName')) { | |
return $node->tagName; | |
} else if (property_exists($node, 'nodeName')) { |
I hereby claim:
To claim this, I am signing this object:
# Inside the repo root | |
$ mkdir svg-collected | |
$ find . -type f -iname '*_48px.svg' -exec cp {} ~/Desktop/material-design-icons-2.0/svg-collected/ \; | |
# Rename the Filenames | |
$ for i in *_48px.svg; do mv -- "$i" "${i/_48px/}"; done | |
$ for i in ic_*; do mv -- "$i" "${i/ic_/}"; done | |
$ for i in *_*; do mv -- "$i" "${i/_/ }"; done |