Skip to content

Instantly share code, notes, and snippets.

View brishtiteveja's full-sized avatar

Andy Khan (Ananda) brishtiteveja

View GitHub Profile
@brishtiteveja
brishtiteveja / Playground.hs
Created July 27, 2022 13:15
Plutus Playground Smart Contract
import Data.Text qualified as T
import Playground.Contract
import Plutus.Contract
import PlutusTx.Prelude
import Prelude qualified as Haskell
-- | A 'Contract' that logs a message.
hello :: Contract () EmptySchema T.Text ()
hello = logInfo @Haskell.String "Hello, world"
@brishtiteveja
brishtiteveja / gist:a34f3c2de3068a6653699371d4b7ea08
Created June 30, 2022 19:44
Bypass remote management after fresh Mac OS installation (helful links)
Removing Remote management after fresh Mac OS installation
https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd#gistcomment-3783117
https://www.reddit.com/r/mac/comments/pi9beh/bypass_remote_management_on_macbook_pro_after/
https://www.youtube.com/watch?v=T1PK37ITJT8&ab_channel=MohamedNashat
https://apple.stackexchange.com/questions/311052/why-do-i-get-a-remote-management-step-when-installing-high-sierra
https://apple.stackexchange.com/questions/297293/turning-off-device-enrollment-notifications-on-macbook-pro
@brishtiteveja
brishtiteveja / avalon_backup_script
Created August 15, 2021 18:02
backup avalon from mongo
echo "1. Creating mongo dump."
mkdir ~/backup
cd ~/backup
mongodump -d avalon -o ~/backup/
echo ""
tar_file_name="avalon.tar.gz" #$(TZ=GMT date +"%d%h%Y_%H").tar.gz
echo "2. Making tarball "$tar_file_name
cd avalon
tar -czvf $tar_file_name *
@brishtiteveja
brishtiteveja / gist:b7c81a647f780cb507905379178c57f5
Created April 3, 2021 15:17
DTube - How to Videos/Tutorial
Some recent dtube help videos for new users. Soon we will have a tutorial page I hope where all the helpful videos are linked as a guide for new users.
Dtube - How To Videos/Tutorials
How does dtube work ! By clixmoney
https://d.tube/#!/v/clixmoney/ioww4q9qtz3
How to use trade DTube Coins on Uniswap by tibfox
https://d.tube/#!/v/dtube/QmZCWiZAqpQKz9xmyrXNP159deRnNxTeuvi4F7Nn1ztnNo
@brishtiteveja
brishtiteveja / gist:497471241d3a749a36416cdb99398f9e
Created March 8, 2021 15:19
Auto kill restart of dtube test node
#!/bin/bash⏎
second=1⏎
csec=30⏎
sle
@brishtiteveja
brishtiteveja / start_dtube_testnet.sh
Last active March 8, 2021 12:38
Script to start dtube testnet on different port
#!/bin/bash⏎
# Repo to be used currently
# git clone https://github.com/techcoderx/avalon
# Checkout to branch tipped-vote-testnet
# git checkout tipped-vote-testnet
# Instruction 1: Run on a different http_port and p2p port if you are running mainnet on the same machine
# Ports configuration⏎
@brishtiteveja
brishtiteveja / instaperiencedb.js
Created February 18, 2021 15:10
orbit db example keyvalue for instaperience instalon
'use strict'
const IPFS = require('ipfs')
const OrbitDB = require('../src/OrbitDB')
const postAttrs = ["postId", "description", "likes", "location", "mediaUrl", "mediaIPFSHash", "ownerId", "timestamp", "username"]
const postDump = {}
postDump["postId"] = ['1jdyU1aFlaD90Er1h0KL' , '27nyFXnnK02P4I3GYdjK', '']
postDump["description"] = ['View from Saxony Lake Beach.' , 'hi']
postDump["likes"] = [100, 10]
@brishtiteveja
brishtiteveja / ThriveCash_Balance.py
Last active February 24, 2020 12:46
Thrivecash Balance Calculation/Loan Repayment
# Thrivecash lending app
print("Thrivecash lending app balance calculation.")
print()
print ("What's the APR(Annual percentage rate %) I am paying for this loan? Is it better than the traditional credit card or personal loans?")
print()
print("Links for further info on Quora: https://www.quora.com/What-is-ThriveCash")
print()
# Money you borrowed
Bini = 5000
diff --git a/MeshTestbed/C++/DemoInfo.cpp b/MeshTestbed/C++/DemoInfo.cpp
index 1fc65a6..c04b00c 100644
--- a/MeshTestbed/C++/DemoInfo.cpp
+++ b/MeshTestbed/C++/DemoInfo.cpp
@@ -25,6 +25,7 @@ CDemoInfo::CDemoInfo(CWnd* pParent /*=NULL*/)
: CDialogBar()
, bCheck1(true)
, bCheck2(true)
+ , mTime(0)
{