Skip to content

Instantly share code, notes, and snippets.

View agtt's full-sized avatar

Agit agtt

View GitHub Profile
@agtt
agtt / google-cloud-tts-language-codes.json
Created March 28, 2024 22:56
List of language codes and names supported by Google Cloud Text-to-Speech API
{
"af-ZA": {
"local": "Afrikaans",
"global": "Afrikaans"
},
"am-ET": {
"local": "አማርኛ",
"global": "Amharic"
},
"ar-AE": {
@agtt
agtt / docker-compose.yml
Last active July 18, 2021 20:23
Kong API Gateway + Pantsel UI with Docker
version: '3.7'
volumes:
kong_data: {}
kong_prefix_vol:
driver_opts:
type: tmpfs
device: tmpfs
kong_tmp_vol:
driver_opts:
@agtt
agtt / deploy.php
Created August 11, 2019 23:15
cPanel CI Integation - Push Deployment
<?php
// Repository Update
shell_exec('/usr/local/cpanel/bin/uapi VersionControl update name=repo_name repository_root=/home/username/repositories/repo_name branch=master source_repository=\'{"remote_name":"origin"}\'
');
// Deploy
shell_exec('/usr/local/cpanel/bin/uapi VersionControlDeployment create repository_root=/home/username/repositories/repo_name');
echo "done";
?>