git clone https://gist.github.com/1975674c22ce8948c895.git taiga
cd taiga
# Update docker-compose.yml
# - Replace Hostname of taigaback and taigafront
# - Update or disable Email settings
docker-compose up -d
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
<?php | |
// embed HTML 5 Video Player | |
// Standbild | |
$file_poster['filename'] = 'startbild.png'; | |
$file_poster['filepath'] = 'sites/default/files/startbild.png'; | |
// Webkit browser & Flash | |
$file_mp4['filename'] ='film_2.mp4'; | |
$file_mp4['filemime'] = 'video/mp4'; | |
$file_mp4['filepath'] = 'sites/default/files/film_2.mp4'; |
<?php | |
class Widget_Name extends WP_Widget { | |
function Widget_Name() { | |
$widget_opts = array( | |
'classname' => 'your-awesome-class', | |
'description' => 'Your awesome Description', | |
); | |
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
If you're trying to run imagemin (from grunt or gulp or anything else) on Alpine, you certainly had to meet this error :
Error: spawn /YOUR_PROJECT_PATH/node_modules/jpegtran-bin/vendor/jpegtran ENOENT
or the same with optipng
or gifsicle
instead of jpegtran
.
Here's how to solve it.
First you need to install on Alpine missing package used to compile jpegtran
, gifsicle
and optipng
binaries. Those packages are (at least):
autoconf automake file build-base nasm musl libpng-dev zlib-dev
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
$ sudo bash -c "$(curl -s https://gist.githubusercontent.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw)"
#cloud-config | |
# Upgrade the instance on first boot | |
# (ie run apt-get upgrade) | |
# | |
# Default: false | |
# Aliases: apt_upgrade | |
package_upgrade: true | |
# Install additional packages on first boot |
query IntrospectionQuery { | |
__schema { | |
queryType { | |
name | |
} | |
mutationType { | |
name | |
} | |
types { | |
...FullType |