host: my-cluster.xxxxxx.us-east-1.rds.amazonaws.com
port: 5432
dbname: mydb
user: app_user
password: "S3cureP@ss"
connect_timeout: 5 # seconds – keep short so failures are detected fast
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
| from __future__ import annotations | |
| import argparse | |
| import json | |
| import logging | |
| import os | |
| import shutil | |
| import subprocess | |
| import sys | |
| from pathlib import Path |
I hereby claim:
- I am ramunasd on github.
- I am ramunas (https://keybase.io/ramunas) on keybase.
- I have a public key ASAGGXnFC9bMHJJIlkOFgM_yAafp8ySJlxAaSDnap-RXGgo
To claim this, I am signing this object:
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 | |
| error_reporting(-1); | |
| ini_set('display_errors', 1); | |
| $remote = isset($argv[1]) ? $argv[1] : 'tcp://google.com:80'; | |
| $errorString = $errorCode = null; | |
| $contextOptions = array(); | |
| if (PHP_VERSION_ID >= 70100) { | |
| $contextOptions['socket'] = array('tcp_nodelay' => true); |
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
| #!/usr/bin/env bash | |
| DATAFILE=${DATAFILE:=data.pbf} | |
| echo "----------" | |
| echo "Update started: `date +%c`" | |
| # update | |
| rm change.osc.gz | |
| ./osmupdate $DATAFILE change.osc.gz > ./log |
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
| #!/usr/bin/env python | |
| import os | |
| import http.server | |
| import socketserver | |
| from urllib.parse import urlsplit, parse_qs | |
| from PIL import Image | |
| class wmsHandler(http.server.BaseHTTPRequestHandler): |
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
| """ | |
| Initialize a basic broadcast slave channel for listening to | |
| an ANT+ HR monitor. | |
| """ | |
| import sys | |
| import time | |
| from ant.core import driver, node, event, message |
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 | |
| $_testStrings = array( | |
| 'AK' => 'Alaska', 'AZ' => 'Arizona', 'VT' => 'Vermont', | |
| 'VA' => 'Virginia', 'AZ' => 'West Virginia', | |
| ); | |
| $_testIntegers = array(0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 84, 144,); | |
| $_testBooleans = array(TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE,); | |
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 | |
| /* | |
| GlobalMercator - part of Aggregate Map Tools | |
| Version 1.0 | |
| Copyright (c) 2009 The Bivings Group | |
| All rights reserved. | |
| Author: John Bafford | |
| http://www.bivings.com/ | |
| http://bafford.com/softare/aggregate-map-tools/ |
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/sh | |
| ################################################################################ | |
| # Zabbix extensions (C) 2011-* Joseph Bueno <zabbixextensions@aperto.fr> | |
| # Published under GNU General Public License version 2 or later. | |
| # See LICENSE.txt | |
| #------------------------------------------------------------------------------- | |
| # Usage: | |
| # zext_msmtp.sh <recipient> <subject> <message> | |
| # | |
| # Description: |
NewerOlder