Skip to content

Instantly share code, notes, and snippets.

Mohammad Bilal furusiyya

Block or report user

Report or block furusiyya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@furusiyya
furusiyya / getAndroidLocation.sh
Created Jan 12, 2017
Get location of android user on basis of MAC address
View getAndroidLocation.sh
sudo curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \
'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=000000000000:-65&app=ymetro'
View ERC20 Token.sol
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
@furusiyya
furusiyya / configure_docker0.sh
Created Apr 12, 2017 — forked from kamermans/configure_docker0.sh
Change the IP subnet of Docker's docker0 interface
View configure_docker0.sh
#!/bin/sh -e
#
# You can run this script directly from github as root like this:
# curl -sS https://gist.githubusercontent.com/kamermans/94b1c41086de0204750b/raw/configure_docker0.sh | sudo bash -s - 192.168.254.1/24
#
# * Make sure you replace "192.168.254.0/24" with the network that you want to use
#
# NOTE: This script is intended for Debian / Ubuntu only!
if [ $# -lt 1 ]; then
@furusiyya
furusiyya / BlockchainResources.md
Last active Aug 17, 2018
Collection of blockchain learning resources I used for getting started. Feel free to add yours :)
View MultiSig.sol
/**
* MultiSig.sol v1.0.0
*
* Bilal Arif - https://twitter.com/furusiyya_
* Block360
*/
pragma solidity 0.4.18;
@furusiyya
furusiyya / id_rsa.pub
Last active Apr 16, 2018
ssh rsa public key
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDg79655A0KOegZ1ohn7IcvkIYFJj4TbWPAHhZivBDbZdVTfI7fSzO32uP0XsibrxNv5054XVEUPYcm8TXIlH9clqippnyjdWM9vAXCfrB7xE7poQ9rz4e7rdIPcU/lMtI4N0iOL3lyawkzHsSHPLAozIr+fHua5Vg+dud1JeUers2EG+kxAnPPK6iPV1vqgIWKoL5nTogLu7iCDoCqY6MIWdz7CSzv9uoyYqqqrVN8sj0wfwJEIsmkR1ep0wlNtMajx2CoA4PvfDsa5ReVTop2vELcoHrrGu0EkbK+4UmcUmvMdCPLAs3SvF5r8k201eTxPw5NIAc5pi5mHAkQBX+H fsociety@fsociety
@furusiyya
furusiyya / Custom token contract
Created May 7, 2017
Created a custom token then transfer to other accounts
View Custom token contract
contractAddress = '0x18ed614ab06285ca9d294e96e5144eefe1160e6d'
Methods available in contract:
1 - balanceOf(account address)
2 - transfer(account address, amount)
In order to use json rpc we need to find the hash of the invoked method signature and encoded parameters
- Hash of method 1:
> gold.balanceOf.getData(eth.coinbase) //Return balance of contract base account
'0x70a08231000000000000000000000000e8a67c0b7e1bc9929dc5bc7aee4ff245745908c8'
View keybase.md

Keybase proof

I hereby claim:

  • I am furusiyya on github.
  • I am furusiyya (https://keybase.io/furusiyya) on keybase.
  • I have a public key whose fingerprint is 120E 08FA 2522 9838 9035 9A42 B0DA 2375 423B F62D

To claim this, I am signing this object:

View gist:23b431d6c883f60a2454b1fb8a1c9999
0x00 0 STOP
0x01 3 ADD
0x02 5 MUL
0x03 3 SUB
0x04 5 DIV
0x05 5 SDIV
0x06 5 MOD
0x07 5 SMOD
0x08 8 ADDMOD
0x09 8 MULMOD
View DragonSecondAudit.md

Some changes have been made in result of first audit. Following points mentioned in previous audit report are still need to be addressed.

7.3. Unresolved, Low: Use of throw

7.4. Unresolved, Low: Possible, Code is subjected to gas optimization.

7.6. Unresolved, Low: Possible, Redundent Code

7.10. Unresolved, Medium: No use of visibility of visibility modifiers

7.11. Unresolved, Medium: Lack of Sanity Checks

This issue doesn't exist in previous version.

1.0. Bad Inheritance

DragonLock.sol

You can’t perform that action at this time.