Skip to content

Instantly share code, notes, and snippets.

View ilovelili's full-sized avatar
🏠
Working from home

min ju ilovelili

🏠
Working from home
View GitHub Profile
@ilovelili
ilovelili / git-clear-history.sh
Created August 9, 2020 07:03
git clear history
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
pragma solidity ^0.4.10;
// Enables event logging of the format `console.log('descriptive string', variable)`,
// without having to worry about the variable type (as long as an event has been declared for that type in the
// Console contract.
contract Console {
event LogUint(string, uint);
function log(string s , uint x) {
LogUint(s, x);
require("dotenv").config();
const Web3 = require("web3");
const Flashloan = require("../build/contracts/TestableFlashloan.json");
const DaiFaucet = require("../build/contracts/DaiFaucet.json");
const VaultManager = require("../build/contracts/VaultManager.json");
const abis = require("../abis");
const {mainnet: addresses} = require("../addresses");
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
import "@studydefi/money-legos/dydx/contracts/DydxFlashloanBase.sol";
import "@studydefi/money-legos/dydx/contracts/ICallee.sol";
import {KyberNetworkProxy as IKyberNetworkProxy} from "@studydefi/money-legos/kyber/contracts/KyberNetworkProxy.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IUniswapV2Router02.sol";
import "./IWeth.sol";
[
{
"constant":true,
"inputs":[
{
"name":"",
"type":"address"
}
],
"name":"owners",
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "attach",
"name": "Attach",
"pid": "${command:pickMyProcess}" // use ${command:pickProcess} to pick other users' processes
},
{
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "go",
"request": "attach",
"mode": "local",
"port": 2345,
"host": "127.0.0.1",
@ilovelili
ilovelili / lisence.md
Last active July 20, 2019 05:57
license comparison

License comparison

License Latest version Linking Distribution Modification Patent grant Private use Sublicensing TM grant
Apache 2.0 Permissive Permissive Permissive Yes Yes Permissive No
GPL 3.0 GPLv3 compatible only Copylefted Copylefted Yes Yes Copylefted Yes
BSD 3.0 Permissive Permissive Permissive No Yes Permissive No
MIT NA Permissive Permissive Permissive No Yes Permissive No
  • Linking - linking of the licensed code with code licensed under a different license (e.g. when the code is provided as a library)
@ilovelili
ilovelili / KubernetesBitcoinConfigs.md
Created June 22, 2019 05:36 — forked from zquestz/KubernetesBitcoinConfigs.md
GCE Kubernetes Bitcoin Configs

Bitcoin Kubernetes Configs

The following guide will walk you through creating a bitcoin full node within GKE (Google Container Engine).

By default Bitcoin ABC is used, however this can be swapped for any other node quite easily.

If you wish to run another version of bitcoind, just change the image reference in bitcoin-deployment.yml. There are tons of images available on the Docker Hub. Better yet, build your own. =)

The source for the included image is available at: https://github.com/zquestz/docker-bitcoin

Keybase proof

I hereby claim:

  • I am ilovelili on github.
  • I am route666 (https://keybase.io/route666) on keybase.
  • I have a public key ASAdpGtsw5BI_uG5RtmPFqHzLnklaZmxZBqoYaytcGuxigo

To claim this, I am signing this object: