This file contains hidden or 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
ffmpeg -i filename.ogg -vn -c:a libopus -ar 16k -ac 1 -b:a 16k -vbr on -compression_level 10 new_filename.ogg |
This file contains hidden or 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
type SplitString = (value: string, length: number) => string[]; | |
export const splitString: SplitString = (value: string, length: number): string[] => { | |
const chunks: string[] = []; | |
for (let index: number = 0; index < value.length; index += length) { | |
const chunk: string = value.slice(index, index + length); | |
chunks.push(chunk); | |
} |
This file contains hidden or 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
{% autoescape false %} | |
{{ contents }} | |
{{ footer }} | |
{% endautoescape %} |
This file contains hidden or 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 ffmpeg from 'fluent-ffmpeg'; | |
import { settings } from '../../../../system'; | |
export default (incomingPatchFile, outgoingPatchFile) => { | |
const ffmpegPath = settings.get('system.ffmpeg.path', ''); | |
ffmpeg.setFfmpegPath(ffmpegPath); | |
return new Promise((resolve, reject) => { |
This file contains hidden or 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
"use strict"; | |
function create(total) { | |
var result = []; | |
for (var i = 0; i < total; i++) { | |
result.push(i + 1); | |
} | |
return result; |
This file contains hidden or 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 | |
# local/php_interface/bootstrap.php | |
declare(strict_types = 1); | |
define('NOT_CHECK_PERMISSIONS', true); | |
define('NO_AGENT_CHECK', true); | |
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 2); |
This file contains hidden or 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/bash | |
# Author: Valentin Popov | |
# Email: [email protected] | |
# Date: 2018-11-13 | |
# Usage: /bin/bash start-sync.sh /path/to/input | |
# Description: Starting repository synchronization. | |
# Updating the Environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
export PATH="$PATH:/usr/local/scripts" |
This file contains hidden or 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/bash | |
# Author: Valentin Popov | |
# Email: [email protected] | |
# Date: 2018-09-10 | |
# Usage: /bin/bash image_optimizer.sh /path/to/input | |
# Description: Optimizing images for Google PageSpeed. | |
# Updating the Environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
export PATH="$PATH:/usr/local/scripts" |
This file contains hidden or 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
# /etc/apt/apt.conf.d/99recommended | |
# Disable recommended packages | |
APT::AutoRemove::RecommendsImportant "false"; | |
APT::AutoRemove::SuggestsImportant "false"; | |
APT::Get::Install-Recommends "false"; | |
APT::Get::Install-Suggests "false"; | |
APT::Install-Recommends "false"; | |
APT::Install-Suggests "false"; |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Hello, world!</title> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> |
NewerOlder