Skip to content

Instantly share code, notes, and snippets.

View vinolivae's full-sized avatar
:shipit:
Studying

Vinicius Oliveira vinolivae

:shipit:
Studying
View GitHub Profile
#!/bin/bash
# It is very common while debugging elixir projects, deployed using mix releases, to
# investigate code logic using "on the fly patches" by entering the running instance iex
# and pasting new code into it (obviously only in dev environment, not production).
# If you're using kubernetes with multiple deployments that must be updated with
# multiple modules definition (like if you're following a bug through multiple steps),
# this process will cost some time.

Instalar o git

sudo add-apt-repository ppa:git-core/ppa  
sudo apt update
sudo apt install git

Instalar o flatpak

sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak

API de Banking

O sistema deve oferecer a possibilidade de usuários realizarem transações financeiras como saque e transferencia entre contas.

Um usuário pode se cadastrar e ao completar o cadastro ele recebe R$ 1000,00.

Com isso ele pode transferir dinheiro para outras contas e pode sacar dinheiro. O saque do dinheiro simplesmente manda um email para o usuário informando sobre o saque e reduz o seu saldo (o envio de email não precisa acontecer de fato, pode ser apenas logado e colocado como "placeholder" para envio de email de fato).

Nenhuma conta pode ficar com saldo negativo.

@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active July 16, 2024 16:33
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@kormyen
kormyen / GyroCamera.cs
Last active September 22, 2023 13:37
Unity3D script for rotating camera with a phone's gyro. Includes smoothing and initial offset. Edited from https://forum.unity3d.com/threads/sharing-gyroscope-camera-script-ios-tested.241825/
using UnityEngine;
using System.Collections;
public class GyroCamera : MonoBehaviour
{
// STATE
private float _initialYAngle = 0f;
private float _appliedGyroYAngle = 0f;
private float _calibrationYAngle = 0f;
private Transform _rawGyroRotation;
@xfanwu
xfanwu / xxf.zsh-theme
Last active June 14, 2024 21:45
Yet another theme for oh-my-zsh
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
# http://xiaofan.at
# 2 Jul 2015 - Xiaofan
# Machine name.
function box_name {