Skip to content

Instantly share code, notes, and snippets.

View pedrolaxe's full-sized avatar
🎯
Focusing

Pedro Laxe pedrolaxe

🎯
Focusing
View GitHub Profile
@pedrolaxe
pedrolaxe / README.txt
Created September 25, 2021 04:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
#!/usr/bin/env bash
#######################################################################
##
#
# Basic Slack notifier
#
# Author: Freibuis
# Web: https://github.com/freibuis
# Inspiration: The Internet!
@pedrolaxe
pedrolaxe / fixpermissions
Created July 5, 2019 20:07
Fix Permissions to /var/www/html/
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;
sudo find /var/www/html -type f -exec chmod g=rws "{}" \;