This file contains 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
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
$alias = <<SCRIPT | |
#!/bin/bash | |
cat > ~root.bashrc <<EOF | |
# .bashrc | |
# User specific aliases and functions | |
alias rm='rm' |
This file contains 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
--- | |
#SELINUX | |
- name: Desabilitando o SeLinux | |
selinux: policy=targeted state=disabled | |
#FIREWALLD | |
- name: Desabilitando o firewalld | |
systemd: name=firewalld state=stopped enabled=no | |
#TIMEZONE | |
- name: Ajustando o timezone do sistema | |
timezone: name=America/Sao_Paulo |
This file contains 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 datetime import datetime, timedelta | |
from pymongo import MongoClient | |
import bson | |
def get_date_90_days_ago_ms(): | |
# Calculates the timestamp 90 days ago in milliseconds. | |
ninety_days_ago = datetime.now() - timedelta(days=90) | |
# Convert to milliseconds | |
return ninety_days_ago.strftime('%s') |
This file contains 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 gzip | |
import os | |
from datetime import datetime, timedelta | |
from pymongo import MongoClient | |
import bson | |
import json | |
from google.cloud import storage | |
def get_date_90_days_ago_ms(): |
OlderNewer