This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('&'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://danielkummer.github.io/git-flow-cheatsheet/ |
_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
OlderNewer