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
#!/bin/sh | |
for i in *.mp4; do | |
ffmpeg -i "${i}" -c:v copy -c:a copy "${i}.mkv" | |
done |
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
[ | |
{ | |
"code": "AFG", | |
"name": "Afghanistan", | |
"eu": false | |
}, | |
{ | |
"code": "ALA", | |
"name": "Åland Islands", | |
"eu": false |
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
{# | |
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ | |
Updated by: Simon Schick <[email protected]> | |
Parameters: | |
* currentFilters (array) : associative array that contains the current route-arguments | |
* currentPage (int) : the current page you are in | |
* paginationPath (string) : the route name to use for links | |
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled) | |
* lastPage (int) : represents the total number of existing pages |
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
import fetch from "node-fetch" | |
import {FormData} from "formdata-node" | |
import {fileFromPath} from "formdata-node/file-from-path" | |
const file = './354.jpg' | |
const cardId = 'REPLACE' | |
const key = 'REPLACE' | |
const token = 'REPLACE' | |
const form = new FormData() |
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
// Note, axios isn't a formData spec compliant client, hence the need for formdata-node encoder | |
import {Readable} from "stream" | |
import axios from 'axios'; | |
import {FormData} from "formdata-node" | |
import {fileFromPath} from "formdata-node/file-from-path" | |
import {FormDataEncoder} from "form-data-encoder" | |
const cardId = 'REPLACE' | |
const file = './354.jpg' |