Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
thiagosouza / atom setup.sh
Last active February 22, 2017 14:50
#atom #setup
# Atom
# https://atom.io
# Atom IDE
cd /tmp
wget https://atom.io/download/deb -O atom.deb
sudo dpkg -i atom.deb
sudo apt-get install -f
let url = 'localhost';
let port = 3000;
let api_endpoint = `http://${url}:${port}/api/`;
let api_uri = `subtitles`;
function get_params(params){
return Object.keys(params).map(key=>`${key}=${encodeURIComponent(params[key])}`).join('&');
}
@thiagosouza
thiagosouza / bittorrentsync.desktop.sh
Last active July 18, 2019 01:56
[Resilio Sync] Resilio Sync Setup #cloud #setup
# file: ~/.config/autostart/bittorrentsync.desktop
# https://developer.gnome.org/desktop-entry-spec/
read -d '' desktop_entry_for_bittorrent_sync << EOF
[Desktop Entry]
Name=BitTorrent Sync
Terminal=true
Exec=/home/thiagosouza/BitTorrent-Sync_glibc23_x64/btsync --webui.listen 0.0.0.0:8888
Type=Application
Icon=/home/thiagosouza/BitTorrent-Sync_glibc23_x64/btsync
@thiagosouza
thiagosouza / 0 git flow.sh
Last active October 10, 2016 21:31
#git #git-flow
#http://danielkummer.github.io/git-flow-cheatsheet/
@thiagosouza
thiagosouza / README.md
Created May 30, 2017 19:36 — forked from alexcasalboni/README.md
Google Vision API Examples - FACE DETECTION
@thiagosouza
thiagosouza / . firebase google-cloud storage database.md
Last active August 2, 2018 18:02
#node.js #firebase #googlecloud #snippets

_

@thiagosouza
thiagosouza / Cryptography cli in node js.sh
Last active February 20, 2024 15:52
[Cryptography cli nodejs] #openssl #encrypt #decrypt #cli #nodejs
openssl enc -aes-256-cbc -in /etc/cryptocurrencies.txt -out services.dat
openssl aes-256-cbc -d -in services.dat -out services.teste
#erase files with wipe
@thiagosouza
thiagosouza / Bitcoin and Ethereum - Keys, Keypair, seeds, keystore and Addressess.sh
Last active August 24, 2023 15:30
[Bitcoin and Ethereum - Keys, Keypair, seeds, keystore and Addressess] #ethereum #bitcoin #keystore #seed
#Generating a usable Ethereum wallet and its corresponding keys
#https://kobl.one/blog/create-full-ethereum-keypair-and-address/
# Generate the private and public keys
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > Key
# Extract the public key and remove the EC prefix 0x04
cat Key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub
@thiagosouza
thiagosouza / 1 ICO.sol
Last active October 17, 2018 13:11
Ethereum Token
pragma solidity ^0.4.24;
import "./ERC20.sol";
/**
* @title SimpleToken
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
* Note they can later distribute these tokens as they wish using `transfer` and other
* `ERC20` functions.
*/
@thiagosouza
thiagosouza / gcloud.sh
Last active April 15, 2020 18:33
GCloud Setup
#GCloud
#install
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-sdk
#references
#https://cloud.google.com/sdk/docs/quickstart-linux