Skip to content

Instantly share code, notes, and snippets.

View svanas's full-sized avatar

Stefan svanas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am svanas on github.
  • I am svanas (https://keybase.io/svanas) on keybase.
  • I have a public key whose fingerprint is F070 21A3 D946 95EB 4DB6 67C5 4978 0088 FF9F 3627

To claim this, I am signing this object:

{******************************************************************************}
{* ISecureString *}
{* *}
{* Created by Stefan van As <dutchdelphidude@gmail.com> *}
{* *}
{* DISCLAIMER *}
{* *}
{* This software is provided 'as is' with no explicit or implied warranties *}
{* in respect of its properties, including, but not limited to, correctness *}
{* and/or fitness for purpose. *}
@svanas
svanas / bpl.reg
Created May 31, 2017 08:56
Windows Explorer version info property sheet for BPLs
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.bpl]
@="{66742402-F9B9-11D1-A202-0000F81FEDEE}"
@svanas
svanas / tortoise-git-for-bitbucket-and-github-for-windows.md
Last active August 16, 2020 03:55
TortoiseGit for Bitbucket and GitHub for Windows
@svanas
svanas / ETH-XXX.sh
Last active April 16, 2021 20:26
Use the Nefertiti crypto bot and trade on all the ETH-XXX market pairs with a single click.
# Trade on all the ETH-XXX market pairs.
# Written by Stefan van As <svanas AT runbox DOT com>
# Example: ./ETH-XXX.sh --exchange=Bittrex --price=0.05 --api-key=X --api-secret=X --pushover-app-key=X --pushover-user-key=X
for i in "$@"
do
case $i in
--exchange=*)
EXCHANGE="${i#*=}"
shift # past argument=value
@svanas
svanas / ETH-XXX-2.sh
Last active January 20, 2022 09:47
Use the Nefertiti crypto bot and trade on all the ETH-XXX market pairs with a single click.
# Trade on all the ETH-XXX market pairs.
# Written by Stefan van As <svanas AT runbox DOT com>
# Example: ./ETH-XXX-2.sh --exchange=Bittrex --price=0.05 --pushover-app-key=X --pushover-user-key=X
for i in "$@"
do
case $i in
--exchange=*)
EXCHANGE="${i#*=}"
shift # past argument=value
@svanas
svanas / com.google.chrome.example.echo.dpr
Created August 11, 2016 09:48
Chrome Native Messaging Example
program com.google.chrome.example.echo;
{$APPTYPE CONSOLE}
uses
WinAPI.Windows,
System.Classes,
System.SysUtils,
System.JSON;
@svanas
svanas / Unit1.pas
Last active November 17, 2022 14:43
Get the totalSupply() of a token (that is not ether) on the Ethereum blockchain
const Client: IWeb3 = TWeb3.Create('https://mainnet.infura.io/v3/your-project-id');
web3.eth.call(Client, '0xB8c77482e45F1F44dE1745F52C74426C631bDD52', 'symbol()', [], procedure(tup: TTuple; err: IError)
begin
if Assigned(err) then
begin
TThread.Synchronize(nil, procedure
begin
MessageDlg(err.Message, TMsgDlgType.mtError, [TMsgDlgBtn.mbOK], 0)
end);
EXIT;
@svanas
svanas / Unit2.pas
Last active February 7, 2023 14:53
ENS reverse lookup
TAddress.Create('0xa0400ba66b4fe0b13bb909abfd377596c02b6733').ToString(
TWeb3.Create(Ethereum.SetRPC('https://mainnet.infura.io/v3/your-project-id')),
procedure(str: string; err: IError)
begin
TThread.Synchronize(nil, procedure
begin
if Assigned(err) then
MessageDlg(err.Message, TMsgDlgType.mtError, [TMsgDlgBtn.mbOK], 0)
else
ShowMessage(str);