Skip to content

Instantly share code, notes, and snippets.

View tarcisio's full-sized avatar
🏠
working from home

Tarcísio Ferreira Sassara tarcisio

🏠
working from home
View GitHub Profile
@tarcisio
tarcisio / utils.go
Created December 28, 2023 21:32
Generics Must
package utils
func Must(err error) {
if err != nil {
panic(err)
}
}
func Must1[T any](v T, err error) T {
if err != nil {
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import sys
import json
from pyspark.context import SparkContext
from awsglue.context import GlueContext
from awsglue.job import Job
from awsglue.utils import getResolvedOptions

Keybase proof

I hereby claim:

  • I am tarcisio on github.
  • I am tarcisio (https://keybase.io/tarcisio) on keybase.
  • I have a public key whose fingerprint is A65B 3B42 584D 3665 4022 F38D A81D 7C23 E2D7 ECAF

To claim this, I am signing this object:

docker run -v /etc/glusterfs:/etc/glusterfs:z \
-v /var/lib/glusterd:/var/lib/glusterd:z \
-v /var/log/glusterfs:/var/log/glusterfs:z \
-v /sys/fs/group:/sys/fs/cgroup:ro \
-d --privileged=true --net=host -v /dev/:/dev gluster/gluster-centos
My Last Words - Ajahn Prawit
############################
:date: 2012-12-11 11:38
:author: Ajahn Prawit
:tags: Ajahn Prawit
:category: Ajahn Prawit
:summary: My Last Words - `Ajahn Prawit`_
var BitfinexWS = require ('bitfinex-api-node').WS;
var moment = require('moment');
function printReg(reg)
{
if(1 != reg.Info.version) {
process.exit(1);
}
var autobahn = require('autobahn');
var wsuri = "wss://api.poloniex.com";
var connection = new autobahn.Connection({
url: wsuri,
realm: "realm1"
});
connection.onopen = function (session) {
function tickerEvent (args,kwargs) {
@tarcisio
tarcisio / bkp_snapshot.sh
Last active December 29, 2015 16:26
backup rsync
#!/bin/bash
# reference
# http://www.mikerubel.org/computers/rsync_snapshots/#Extensions
# CRON
# 0 */4 * * * /usr/local/bin/bkp_snapshot.sh >/dev/null 2>&1
unset PATH
@tarcisio
tarcisio / base.sh
Last active August 29, 2015 14:11
instalando infra no google cloud
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install build-essential supervisor locales -y
sudo locale-gen pt_BR.utf8
sudo cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
date
@tarcisio
tarcisio / gist:4796101f58dd30d7c401
Last active August 29, 2015 14:11
configuracoes
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install build-essential \
libpcre3-dev libzip-dev libssl-dev \
libxml2-dev libcurl4-openssl-dev \
libjpeg-dev libpng12-dev libmcrypt-dev \
locales -y
sudo locale-gen pt_BR.utf8