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
Create a post flow: | |
1- Generate an access token: | |
//TODO search how to do this programmatically | |
2- Send a request to blogger with post content | |
URI: https://www.googleapis.com/blogger/v3/blogs/$blogId/posts | |
Header: |
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 | |
tmpFile1=~/.tmp1$$ | |
tmpFile2=~/.tmp2$$ | |
database=$1 | |
database_local=$2 | |
function cleanFiles() { | |
rm $tmpFile1 $tmpFile2 > /dev/null 2>&1; | |
exit; |
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`; | |
} |
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
# 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
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
[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
--- | |
- 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import boto3 | |
import csv | |
import json | |
import locale | |
import os | |
locale.setlocale(locale.LC_ALL,'') |