Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
@Alexintosh
Alexintosh / protect.sh
Created September 3, 2018 16:28
AES-256-cbc terminal encryption
#!/bin/bash
#encrypt files with aes-256-cbc cipher using openssl
#encrypt files
if [ $1 == "-e" ];
then
if [ -f "$2" ];
then
openssl aes-256-cbc -a -e -salt -in "$2" -out "$2.aes"
else
@Alexintosh
Alexintosh / js-crypto-libraries.md
Created September 23, 2018 16:19 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@Alexintosh
Alexintosh / InviteLink.sol
Created November 22, 2018 11:47 — forked from mikhaildobs/InviteLink.sol
InviteLink module for ERC-1077
pragma solidity ^0.5.4;
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol";
contract CiaoToken is ERC20Detailed, ERC20Mintable, ERC20Burnable {
constructor()
ERC20Burnable()
ERC20Mintable()
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
@Alexintosh
Alexintosh / Github Webhook Tutorial.md
Created March 14, 2019 13:24 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@Alexintosh
Alexintosh / Node CLI Resources
Created May 1, 2019 12:03
Node CLI Resources
- [Package your Node.js project into an executable](https://github.com/zeit/pkg)
- [ Framework for effortlessly building CLI apps with React](https://github.com/vadimdemedes/pastel)
Quick recap of DexWallet Progress in the last months.
- Oct 10, 2018 | DexWallet first Announcement | https://medium.com/dexlab-io/introducing-dexwallet-39afa2311300
- Oct 26, 2018 | DexWallet is the Fist Wallet Supporting xDAI Network Ever | https://medium.com/dexlab-io/dexwallet-welcomes-poas-xdai-chain-17d4a45a3453
- Oct 27, 2018 | DexWallet is giving away Free ENS Names | https://medium.com/dexlab-io/dexwallet-is-giving-away-ens-names-for-a-limited-time-only-3a985bfe4ef7
- Oct 28, 2018 | DexWallet New UI + Several Cool Features | https://medium.com/dexlab-io/dexwallet-new-ui-several-cool-features-ab09bc0a98a3
- Nov 14, 2018 | DexWallet Team won the POA 1st Prize at the #cryptolife Status Hackathon
- Feb 6, 2019 | DexWallet Compound Integration | https://twitter.com/Alexintosh/status/1093229910175481861
- Feb 17, 2019 | DexWallet Collectibles Support and Native dApp store | https://twitter.com/Alexintosh/status/1096928006772346880
- Feb 18, 2019 | 256% increase in downloads for DexWallet
@Alexintosh
Alexintosh / submit-dapp.md
Created May 3, 2019 14:58 — forked from dappvolume/submit-dapp.md
Submit Dapps to these sites for huge exposure!

Submit A Dapp

Once you create a dapp its important the dapp gets exposure. Here is a list of 20 places you can submit your Dapp.

Dapp Websites

The following websites showcases dapps ( decentralized applications ).

Name URL Platform
/* eslint-disable class-methods-use-this */
import isUndefined from 'lodash/isUndefined';
import findIndex from 'lodash/findIndex';
class Compound2 {
constructor(wallet) {
this.W = wallet;
this.cacheApi = null;
this.portfolio = [