Skip to content

Instantly share code, notes, and snippets.

View shalzz's full-sized avatar
🦀

Shaleen Jain shalzz

🦀
View GitHub Profile
@shalzz
shalzz / attestation.txt
Created September 3, 2021 08:38
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 76
Hash: 39b2b3da e380ffac b5a10cb2 22eb004c
7bbb9c8e 0fa9bc70 dc8d512a b8256078
b0c5c2bd 256aa5a2 a2e56835 03f7d3a7
78393b2d 19851207 d87442fe fefe0352

Shaleen's Review of

Vulnerabilities

None found

Comments and Suggestions

Styling

/**
*Submitted for verification at Etherscan.io on 2021-03-10
* This is the verified contract source of the UBI token deployed at address: 0x45574741cE337505359Cca0D80Fa810F49158793
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
/**
* This code contains elements of ERC20BurnableUpgradeable.sol https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/token/ERC20/ERC20BurnableUpgradeable.sol
// A Token contract that keeps a
// record of the users past balances.
contract SnapShotToken {
mapping(address => uint) public balances;
mapping(address => mapping(uint => uint)) public balanceAt;
event BalanceUpdated(address indexed user, uint oldBalance, uint newBalance);
/// @dev Buy token at the price of 1ETH/token.
function buyToken() public payable {
We can't make this file beautiful and searchable because it's too large.
address,earnings,reasons
0x0003440b0f7edb40c1c089b743a07a56bff72af0,0x2686e08ef9b732000,V2_DAI
0x0006e4548aed4502ec8c844567840ce6ef1013f5,0x1173610b3dbf92c000,V2_USDC
0x000b79f52356189c80a9d3ada3911d4438218516,0x22e86980f8701f5000,"V2_USDC,V2_DAI"
0x000be263b3ceb55d22ed9b40d7619f62c4862c80,0x1247352b0a30de000,V1
0x000ce91ca7417212484f3fd80b7f79f9c613b6de,0x1393a1f64ba183000,V2_DAI
0x000f4432a40560bbff1b581a8b7aded8dab80026,0x13b573d70e47aa000,V3_DAI
0x0018bfd060cb966abafe852eb1648a3e4385b477,0x15ac34f35c8a8a4000,"snapshot,V3_DAI"
0x001a2afaa2fb6ed584b80a79741adae4bfc0ab58,0x22b5a41159aba9000,V2_DAI
0x001fe2cdbeeb0743679e958c0861dd8788b28b19,0x4b6da06685ebfb000,"V2_DAI,V3_DAI,V2_USDC"
We can't make this file beautiful and searchable because it's too large.
Address,amount
0x66aB6D9362d4F35596279692F0251Db635165871
0x4151b47aa17b36c0a210169e3b0fb8ebf3230645
0xf077a995e6aa0eb1bcc00b73279e8ebe260aabdb
0x69fa720ddac9bd3989ed61ed81c8645aaf983c4c
0x0cec743b8ce4ef8802cac0e5df18a180ed8402a7
0xafa23eed4b23bdb9cf4cb848a1235c4f64fe48a0
0x65df98633531e1bea208fda2f534cf1bafc90256
0x12a4aed38cee43dfa9e2e9ed0c9545632eaab40d
0x23667b70fc50d98ca3699f516b5d711486e9c6ad
@shalzz
shalzz / motogamepad.conf
Last active January 22, 2021 06:59
Button mapping config of Motorola gamepad for use with xboxdrv. Example use: `xboxdrv --evdev /dev/input/event16 --config ~/.config/xboxdrv/motogamepad.conf`
# Motorola Android TV gamepad Config
# Model SZ-A10008
# Hold M+X buttons to pair as gamepad
[xboxdrv]
evdev-debug = false
evdev-grab = true
rumble = false
mimic-xpad = true
@shalzz
shalzz / docker-compose.yaml
Last active January 2, 2021 11:41
DNS stack self host
version: "3"
services:
hsd:
container_name: hsd
image: shalzz/hsd:2.2.0-a1409dc4
volumes:
- '/media/sda1/hsd-data:/root/.hsd'
ports:
- "54:54/tcp"
@shalzz
shalzz / ci-setup.sh
Created October 31, 2019 06:31 — forked from lordcodes/ci-setup.sh
Android Circle CI config involving workflows, caching and sharing the workspace between steps in workflow.
#!/usr/bin/env bash
# Accept licenses
${ANDROID_HOME}/tools/bin/sdkmanager --licenses
# Install dependencies
./gradlew androidDependencies || true
@shalzz
shalzz / gist.md
Created January 11, 2019 12:45
Example of how to embed a GitHub Gist using Zola.

Embed a Github gist.

The arguments are:

  • url: the url to the gist (mandatory)
  • file: by default, the shortcode will pull every file from the URL unless a specific filename is requested
  • class: a class to add the div surrounding the iframe

Usage example: