This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Example: ./upload_to_minio example.url.com username password bucket-name internal/minio/path /absolute/path/file.txt.zst | |
if [ -z $1 ]; then | |
echo "You have NOT specified a MINIO URL!" | |
exit 1 | |
fi | |
if [ -z $2 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gitlab project favicon | |
// @author Stanislav Popov | |
// @version 0.1 | |
// @namespace popstas.ru | |
// @description Use og:image as favicon on Gitlab pages | |
// @unwrap | |
// @noframes | |
// @run-at document-end | |
// @updateURL https://gist.github.com/popstas/9d17c1b0e1772a84581b3af8a342ad73/raw/1f2c562a128568e1b220457bdab1e9d60dc1467d/gitlab-project-favicon.user.js |
Before adding the userChrome.css, you must enable loading it in the Firefox config (Firefox 69+):
- In Firefox, browse to
about:config
(accept the warning prompt) - search for
toolkit.legacyUserProfileCustomizations.stylesheets
- double click the entry so it says
true
Here is how to find your Firefox profile folder:
- Windows Default:
%APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\
- Ubuntu Default (apt):
~/.mozilla/firefox/xxxxxxxx.default/
When an interger is sent for monitor>type
an internal error occurs. If a string is sent as in the main.yml
example it is okay.
When an internal error occurs a 200 response not 500 is sent.
When an error occurs (e.g. monitor already exists) a 200 response is sent.
A quick guide on how to read/write/modify ID3 metadata tags for audio / media files using ffmpeg
.
FFmpeg has a free-form command line option that allows the user to specify key-value-pairs for encoding metadata. Let's take a look.
To list all global metadata tags for a media file, just set an input but no output file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: mysql2 | |
encoding: utf8 | |
database: my_database | |
username: root | |
password: | |
apt: | |
- somepackage | |
- anotherpackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\PropertyAccess\PropertyAccessor; | |
use Symfony\Component\PropertyAccess\PropertyPath; | |
/** | |
* A property accessor that allows you to rewrite a property path for setters and getters. | |
*/ | |
class CustomPropertyAccessor extends PropertyAccessor | |
{ | |
/** |
NewerOlder