Skip to content

Instantly share code, notes, and snippets.

View amancioandre's full-sized avatar
📈
It's Data Science time baby!

Andre Moraes amancioandre

📈
It's Data Science time baby!
View GitHub Profile

73# First steps after installing Pop!_OS 19.10

Using ansible. Installs pyenv, nvm, keybase, keeweb, vs codium, riot-web, golang

Packages

Upgrade & install basics

sudo apt-get update && sudo apt-get upgrade -y
@amancioandre
amancioandre / script.js
Created February 9, 2022 17:14
ThreeJS testing
import './style.css'
import * as THREE from 'three'
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
//import * as path from 'path'
//const path = require('path')
// Scene.
var camera, scene, renderer, light;
@amancioandre
amancioandre / .gitconfig
Created January 31, 2022 05:09 — forked from johnpolacek/.gitconfig
My current .gitconfig aliases
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
st = status
aa = add -A .
FROM python:3.7
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY . /code/
RUN pip install -r requirements-dev.txt
@amancioandre
amancioandre / verify-ses-email.sh
Created May 29, 2021 18:37 — forked from dvejmz/verify-ses-email.sh
Auto-verify SES email address upon launching localstack
#!/bin/bash
set -eo pipefail
## Mount this file in /docker-entrypoint-initaws.d so that localstack runs it
## as part of its entrypoint routine.
echo 'Running AWS verify identity command. See: https://github.com/localstack/localstack/issues/339'
aws ses verify-email-identity --email-address ${EMAIL_ADDRESS} --region ${AWS_REGION} --endpoint-url=http://localhost:4579
echo "Verified ${EMAIL_ADDRESS}"
@amancioandre
amancioandre / startCodeBuild.sh
Created May 18, 2021 14:02 — forked from yardbirdsax/startCodeBuild.sh
Start AWS Codebuild pipeline from command prompt and wait
#!/bin/bash
error_exit()
{
echo "$1" 1>&2
exit 1
}
CODEBUILD_PROJECT_NAME=$1
@amancioandre
amancioandre / class_decorator.ts
Created May 9, 2021 02:02 — forked from remojansen/class_decorator.ts
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}
@amancioandre
amancioandre / encryption.js
Created April 29, 2021 12:34 — forked from vlucas/encryption.js
Stronger Encryption and Decryption in Node.js
'use strict';
const crypto = require('crypto');
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters)
const IV_LENGTH = 16; // For AES, this is always 16
function encrypt(text) {
let iv = crypto.randomBytes(IV_LENGTH);
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv);
@amancioandre
amancioandre / customize-mx-master-ubuntu.md
Created November 9, 2020 14:21 — forked from bogdanRada/customize-mx-master-ubuntu.md
Custom keymap for Logitech MX Master 2S mouse on Ubuntu

First, install Solaar to see the battery level on the taskbar

sudo apt-get install solaar

To remap the keys, install

sudo apt-get install xbindkeys xautomation
@amancioandre
amancioandre / MatchmakingConfiguration.md
Last active September 14, 2020 19:29
AWS GameLift StartMatchmaking