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 | |
| if [ -z "$1" ] ; then | |
| echo "usage: $0 <host:path/>" | |
| exit 64 | |
| fi | |
| TARGET="$1" | |
| echo "Set up synchronization with $TARGET" |
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 | |
| if [ -z "$1" ] ; then | |
| echo "usage: $0 <host:path/>" | |
| exit 64 | |
| fi | |
| TARGET="$1" | |
| echo "Set up synchronization with $TARGET" |
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
| # ~/.config/fish/functions/f.fish | |
| function f | |
| find ./ -iname '*'$argv[1]'*' | |
| end |
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 php | |
| <?php | |
| $user = '<user>'; | |
| $userId = '<userId>'; | |
| $secret = '<secret>'; | |
| // Fetch text and meta-data from blog software… | |
| class Post { |
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 php | |
| <?php | |
| require dirname( __FILE__ ) . '/../../lib/php/arguments.php'; | |
| // Define options array for this tool | |
| $options = array( | |
| 'General' => array( | |
| 'color' => array( | |
| 'short' => 'c', |
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
| - name: Create Grafana Prometheus data source | |
| uri: | |
| method: PUT | |
| url: http://localhost:3030/api/datasources/1 | |
| body: '{"name": "Prometheus", "type": "prometheus", "url": "http://localhost:9090", "access": "proxy", "basicAuth": false}' | |
| headers: | |
| Content-Type: "application/json" | |
| force_basic_auth: yes | |
| user: "{{ grafana_user }}" | |
| password: "{{ grafana_password }}" |
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 php | |
| <?php | |
| // Test using `slack-status <networkDevice> up` | |
| // | |
| // Get Slack tokens at https://api.slack.com/custom-integrations/legacy-tokens | |
| $workspaces = [ | |
| 'Tideways' => '<token>', | |
| 'FRONTASTIC' => '<token>', | |
| ]; |
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 php | |
| <?php | |
| // Test using `slack-status <networkDevice> up` | |
| // | |
| // Get Slack tokens at https://api.slack.com/custom-integrations/legacy-tokens | |
| $workspaces = [ | |
| 'Tideways' => '-', | |
| 'FRONTASTIC' => '-', | |
| 'PHPUGDO & Friends' => '-', |
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
| --- | |
| - name: Restart Prometheus | |
| service: name=prometheus state=restarted enabled=yes | |
| - name: Restart Grafana | |
| service: name=grafana-server state=restarted enabled=yes |