Skip to content

Instantly share code, notes, and snippets.

View shide1989's full-sized avatar

Sebastien Hx. shide1989

View GitHub Profile
@shide1989
shide1989 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created May 11, 2023 07:28
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=builtin&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@shide1989
shide1989 / parrot_kali_install.sh
Created May 1, 2023 15:42 — forked from ACK-J/parrot_kali_install.sh
OffSec Tools Install
#!/bin/bash
# System Updates
sudo apt-get update -y
sudo apt-get full-upgrade --fix-missing -y
sudo apt-get autoremove -y
#sudo parrot-upgrade
# Alias to Fix Virtual Box issues
# alias FixVM="killall /usr/bin/VBoxClient 2> /dev/null; /usr/bin/VBoxClient --clipboard && /usr/bin/VBoxClient --seamless && /usr/bin/VBoxClient --vmsvga && /usr/bin/VBoxClient --draganddrop && /usr/bin/VBoxClient --checkhostversion"
@shide1989
shide1989 / aws-ec2-redis-cli.md
Last active April 14, 2020 13:50 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This short setup will show you how to install redis-clion AWS EC2 without having to install the whole Redis Server.

On your EC2 instance run the following commands:

sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

@shide1989
shide1989 / README.md
Last active November 18, 2020 16:34
VueJS Bitbucket deployment template, on AWS S3 & Cloudfront

Just a simple Template to configure your VueJS project's CI/CD with Bitbucket, deploying it on AWS S3 & Cloudfront

Make sure you configure your Bitbucket Project's deployment-settings with the correct env variables and that Bitbucket has the correct access rights

Keybase proof

I hereby claim:

  • I am shide1989 on github.
  • I am sebhx (https://keybase.io/sebhx) on keybase.
  • I have a public key ASBKL0JPhf6vy61D4FxgILfBCyeXAEt8bNb_w85OZP0QhQo

To claim this, I am signing this object:

@shide1989
shide1989 / cloudfront_create_invalidation_policy.json
Created July 31, 2019 10:11 — forked from chusiang/cloudfront_create_invalidation_policy.json
AWS IAM policy of CloudFront Create Invalidation
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::MyBucketName"
},
{
"Action": [
@shide1989
shide1989 / README.md
Last active July 19, 2019 11:02
MongoDB Node.js Driver simple implementation

Node JS Mongodb Simple driver

This is simple implementation of the MongoDB driver, you can use this brick when you start to work with MongoDB

install : npm i -s mongodb

@shide1989
shide1989 / Aircrack Commands
Created June 16, 2018 15:22 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
@shide1989
shide1989 / logger.js
Created March 30, 2017 16:03
A simple logger to know when, where and what's happening (using sweet npm colors)
/*
Logging levels :
0 : Show error
1 : Show warning
2 : Show valid
3 : Show info
4 : Show debug
5 : show verbose
[level]Raw : Raw info without time & msg location