Skip to content

Instantly share code, notes, and snippets.

View 0x3bfc's full-sized avatar
🌍
Focusing

Ahmed 0x3bfc

🌍
Focusing
View GitHub Profile
@0x3bfc
0x3bfc / private_fork.md
Created July 5, 2022 08:20 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@0x3bfc
0x3bfc / git-tag-delete-local-and-remote.sh
Created April 28, 2021 14:44 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@0x3bfc
0x3bfc / OceanToken.sol
Created August 21, 2020 18:23
OceanToken.sol flattened
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
@0x3bfc
0x3bfc / add-update-github-access-token-on-mac.md
Created December 16, 2019 10:21 — forked from jonjack/add-update-refresh-github-access-token-on-mac.md
Adding & Updating GitHub Access Token on Mac

As outlined here, there are a couple of situations where you need to authenticate with GitHub by using an Acces Token:-

  1. If you have Two-Factor Authentication (2FA) enabled.
  2. You are accessing an organisations protected content using SAML Single-Sign On (SSO).

Create an Access Token

In your GitHub account, go to Settings / Developer settings / Personal access tokens and select Generate New Token. Make a note of the token somewhere safe since this is the only chance you get to see it.

Add the token to your local OSX Key Chain

@0x3bfc
0x3bfc / MergeGitConflict.txt
Last active August 20, 2019 09:26
This is a sample commands in which resolve the git branch conflict manually through command line.
git checkout -b feature/whitelisting-merge origin/feature/whitelisting
git merge develop
git status
// fix conflicts
git add .
git commit -m 'resolve conflict'
git status
git checkout feature/whitelisting
git merge --no-ff feature/whitelisting-merge
git push

Keybase proof

I hereby claim:

  • I am 0x3bfc on github.
  • I am aabdulwahed (https://keybase.io/aabdulwahed) on keybase.
  • I have a public key ASBBYowyPG6GJiulb3BV2Ijs2BFZqA0dnI57w877r-CxLAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am a2zpowerof4 on github.
  • I am aabdulwahed (https://keybase.io/aabdulwahed) on keybase.
  • I have a public key ASBBYowyPG6GJiulb3BV2Ijs2BFZqA0dnI57w877r-CxLAo

To claim this, I am signing this object:

@0x3bfc
0x3bfc / resources.txt
Created May 17, 2019 08:39 — forked from kendricktan/resources.txt
RangeProof Resources
# Papers
## BulletProof Original Paper
https://eprint.iacr.org/2017/1066.pdf
# Things Intentionally Left Out
## Fiat Shamir
https://en.wikipedia.org/wiki/Feige%E2%80%93Fiat%E2%80%93Shamir_identification_scheme
http://cryptowiki.net/index.php?title=Fiat_-_Shamir_protocol
## Pederson Commitments
https://crypto.stackexchange.com/questions/9704/why-is-the-pedersen-commitment-computationally-binding
@0x3bfc
0x3bfc / SecurifyReport.txt
Last active January 4, 2019 14:27
SecurifyReport.md
632.78s$ docker run -v $(pwd):/project chainsecurity/securify
Compiling project
Running Securify
Processing contract: /project/contracts/Migrations.sol:Migrations
Attempt to decompile the contract with methods...
Success. Inlining methods...
Propagating constants...
Verifying patterns...
Processing contract: /project/contracts/OceanMarket.sol:OceanMarket
Attempt to decompile the contract with methods...
@0x3bfc
0x3bfc / OraclizeExample.sol
Created January 3, 2019 08:31
Oraclize.sol
import "github.com/oraclize/ethereum-api/oraclizeAPI_0.5.sol";
contract OracleExample is usingOraclize {
string public EURUSD;
function updatePrice() public payable {
if (oraclize_getPrice("URL") > address(this).balance) {
//Handle out of funds error