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
https://serveo.net/ | |
ssh -R myapp.serveo.net:80:localhost:8080 serveo.net |
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
https://www.vultr.com/docs/setup-letsencrypt-on-linux |
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 | |
maintenance_name=start-rds | |
rds_instance_id=rds-instance-name | |
dummy_ec2_id=i-00000000000000 | |
task=AWS-StartRdsInstance # or AWS-StopRdsInstance | |
service_role=arn:aws:iam::00000000:role/MyRoleName | |
profile=default | |
region=us-east-1 | |
cron_expression='cron(4 0 ? * MON-FRI *)' # From monday to friday at 07:00 PM (UTC) |
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 | |
# -*- coding: utf-8 -*- | |
import boto3 | |
import csv | |
import json | |
import locale | |
import os | |
locale.setlocale(locale.LC_ALL,'') |
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: Run async tasks | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: Sleep 2 times | |
shell: /bin/sleep 5 | |
async: 10000 | |
poll: 0 |
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
[Unit] | |
Description=My Service Name | |
After=network.target | |
[Service] | |
Type=simple | |
User=<user> | |
Group=<group> | |
WorkingDirectory=/opt/app | |
ExecStart=/bin/ls -lh |
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 csv | |
import json | |
import sys | |
# Example csv file: | |
#originPlaceId;destinationPlaceId;travelCompanyId;serviceClassId;price;active;clientIds/0;clientIds/1;clientIds/2;clientIds/3;clientIds/4;clientIds/5 | |
#3827;3022;35;1;416.55;VERDADEIRO;1;2;3;10013;10014;10015 | |
try: |
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
# vim: ft=ansible_hosts | |
[defaults] | |
ansible_python_interpreter = /usr/bin/env python | |
ansible_managed = Ansible Managed. Please refrain from making manual changes. | |
host_key_checking = False | |
accept_hostkeys = yes | |
remote_user = admin | |
hash_behaviour = merge | |
retry_files_enabled = False | |
roles_path = roles |
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
{ | |
"1": "Crate", | |
"2": "Cave Entrance", | |
"3": "Door", | |
"5": "Broken multicannon", | |
"6": "Dwarf multicannon", | |
"7": "Cannon base", | |
"8": "Cannon stand", | |
"9": "Cannon barrels", | |
"11": "Ladder", |
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 | |
# set -x | |
SNAPSHOT_REPO="http://nexus.clickbus.net:8081/nexus/content/repositories/snapshots2/com/clickbus/platform" | |
RELEASE_REPO="http://nexus.clickbus.net:8081/nexus/content/repositories/releases/com/clickbus/platform" | |
function getCurrentDir() { | |
local dir=`pwd`; | |
echo `basename $dir`; | |
} |