Skip to content

Instantly share code, notes, and snippets.

View autrilla's full-sized avatar

Adrian Utrilla autrilla

View GitHub Profile
#!/usr/bin/env bash
# ====== Variables =============================
gaps_top="4"
gaps_bottom="4"
gaps_left="4"
gaps_right="4"
gaps_inner="4"
use http;
use hyper;
use hyper_tls::HttpsConnector;
use async_trait::async_trait;
use regex;
use thiserror::Error;
use crate::lib;

SOPS: Secrets OPerationS

sops is a secrets management solution and editor of encrypted files that supports a variety of file formats and encryption providers.

Here is a quick demo of sops in action:

SOPS in action

import sqlalchemy
import humanize
import time
import logging
import re
import os
logging.basicConfig()
logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO)
CREATE TABLE `abuse_reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`reporter_id` int(11) DEFAULT NULL,
`ip_address` varchar(255) NOT NULL,
`addon_id` int(11) unsigned DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`message` longtext NOT NULL,
`guid` char(255) DEFAULT NULL,
FROM kennethreitz/pipenv
COPY . /app

Keybase proof

I hereby claim:

  • I am autrilla on github.
  • I am autrilla (https://keybase.io/autrilla) on keybase.
  • I have a public key ASBQvd5hsxF4vhdXEyjf9zaW1xhZ1OPsZ3s-cwNKK7vbrgo

To claim this, I am signing this object:

0e044928a9e6 autrilla/farmnet:staging "bash -c '/wait-for-i" 6 minutes ago Up 6 minutes mhs-demo2/farmnetbackend_scheduler_1
76ce79b323e6 autrilla/farmnet:staging "bash -c '/wait-for-i" 7 minutes ago Up 7 minutes mhs-demo1/farmnetbackend_django_2
51f6ef33aa83 autrilla/farmnet:staging "bash -c '/wait-for-i" 7 minutes ago Up 7 minutes mhs-demo1/farmnetbackend_django_3
c2e7298b8a91 autrilla/farmnet:staging "bash -c '/wait-for-i" 7 minutes ago Up 6 minutes mhs-demo2/farmnetbackend_worker_1
be01ae9e9472 autrilla/farmnet:staging "bash -c '/wait-for-i" 7 minutes ago Up 7 minutes mhs-demo1/farmnetbackend_django_1
5a614e3f25f2 postgres "/docker-entrypoint.s" 7 minutes ago Up 6 minutes
public override BusinessBase NewObject(string ObjectName)
{
BusinessBase obj;
if (ObjectName == "UserApp")
{
return new CRM.Business.UserApp.UserApp();
}
obj = base.NewObject(ObjectName);
public override BusinessBase NewObject(string ObjectName)
{
BusinessBase obj;
if (ObjectName == "UserApp")
{
return new CRM.Business.UserApp.UserApp();
}
obj = base.NewObject(ObjectName);