Skip to content

Instantly share code, notes, and snippets.

View sascha1337's full-sized avatar
🧠

Sascha1337 sascha1337

🧠
View GitHub Profile
@sascha1337
sascha1337 / iota-wallet-remote-pow-patch.md
Last active February 13, 2018 23:38
Patch to use remote node PoW inside IOTA wallet

Prevent overwriting attachToTangle when changing node settings in wallet:

diff --git a/ui/js/ui.utils.js b/ui/js/ui.utils.js
index 84a92f0..c24ed32 100644
--- a/ui/js/ui.utils.js
+++ b/ui/js/ui.utils.js
@@ -267,8 +267,8 @@ var UI = (function(UI, $, undefined) {
       iota.changeNode({"host": connection.host, "port": connection.port});
@sascha1337
sascha1337 / db_iri-playbook-1.4.2.4_RC.sh
Created April 29, 2018 17:14
Upgrade IRI to 1.4.2.4_RC to keep existing database # By Nuriel Shem-Tov http://iri-playbook.readthedocs.io/ #experimental
#!/bin/bash
# Upgrade IRI to 1.4.2.4_RC to keep existing database
# By Nuriel Shem-Tov http://iri-playbook.readthedocs.io/
# WARNING BACKUP BEFORE TESTING THIS OR WAIT FOR MAIN RELEASE
# If you set first argument to the script "i-trust-nuriel" it will download
# a precompiled version from x-vps.com.
set -e
if [[ $EUID -ne 0 ]]; then

How to connect a IOTA Smart Contract with a Web Frontend

Goal of this tutorial is deploy a Hello World Smart Contract, and displays a "Hello World" string on a Website.

Hello Frontend Smart Contract

use wasmlib::*;
#[no_mangle]
fn on_load() {
    let exports = ScExports::new();
@sascha1337
sascha1337 / keybase.md
Created August 25, 2021 04:39
keybase.md

Keybase proof

I hereby claim:

  • I am sascha1337 on github.
  • I am sascha1337 (https://keybase.io/sascha1337) on keybase.
  • I have a public key ASCIB2Fwp0A0Je6ArVFvfMBdYaYqaVVPaYmlR1fj0kC0qQo

To claim this, I am signing this object:

@sascha1337
sascha1337 / token_recommendation_algo_bigquery.sql
Last active March 8, 2022 09:46
token_recommendation_algo_bigquery.sql
#standardSQL
with top_tokens as (
select token_address, count(1) as transfer_count
from `bigquery-public-data.crypto_ethereum.token_transfers` as token_transfers
group by token_address
order by transfer_count desc
limit 1000
),
token_balances as (
with double_entry_book as (
0x6040610aa96101403960606020610aa960c03960c051610aa9016101803960406020610aa960c03960c05160040135111561003957600080fd5b604060206020610aa90160c03960c051610aa90161020039602060206020610aa90160c03960c05160040135111561007057600080fd5b61018080600060c052602060c020602082510161012060006003818352015b826101205160200211156100a2576100c4565b61012051602002850151610120518501555b815160010180835281141561008f575b50505050505061020080600160c052602060c020602082510161012060006002818352015b826101205160200211156100fc5761011e565b61012051602002850151610120518501555b81516001018083528114156100e9575b505050505050336005556000610260523360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610260a3610a9156341561000a57600080fd5b60043610156100185761092e565b600035601c5263313ce567600051141561003957601260005260206000f350005b63a9059cbb60005114156100ee5760043560a01c1561005757600080fd5b60023360e05260c052604060c02080546024358082101561007757600080fd5b80820390509050815550600260043560e05260c052604060c02080546024358181830110156100a55760
@sascha1337
sascha1337 / zededa-transform-developer-day-2022.m3u8
Last active May 12, 2022 16:12
zededa-transform-developer-day-2022.m3u8
Place following URL into VLC / browser or just via ffplay:
```
https://video-weaver.jkt02.hls.live-video.net/v1/playlist/CqsFjxKKvcY4ID3qDl2f19UNWKMOACqsjHRXTN6TOO0QX56e6rl--oWf1LcF5kYlA_aSGWNIynLPtdvcNi_II_Y0BfJ36EhVOn_rWkhcUJJa3Fr4ELTfuAI0CfCnkWI__p00zdXCP4WOUEn30JuaiHVbevhcejsuuu0A1exHOI0hVfyn1ov7TDskmrXS7F9oLctEEU9z3tJzCWLCU_-HXoSaoaZ7_DhS8jeoV0cDiD4SOdsQTrK0UPsDDUO7kULWLueR3OcpWvsg-ovxWOk56FmQES-8h4V7eNJ6XhypFIXaidxwRS06jEs5gZEG92TW7WjOq0Fzh3jozY3IqDhPTAW6P0BKakq9GfwLUuoO0Klofy4j9Tmlk5NTIViuf2M1URk1uol1i6hdSiINxHxE7royT8hO_VM4oip4VOAvmw8Dgw4gXYlTevhorQUn4IFYZ4p5hLa-NX6HOlR8TR5sGPTmaFX775y6spisuiyqiBqU0doz48Mr3X4Coqn3i_pxlqE_igcTsodZQ6cgTX2hGiyUEmGLcHn-JquiT7MU9E8oVeOI4mhCW56nUztMlXhS7czVgh9u7RXQKm7UV2QPKEgX8XMs52GR88gSUwL5oiID1LvL6SQ8UXpgz6UH--SKZQQh5kJMVpE2if0PTbgKsYozfeCfyW-DJOx-hvFT843w6WOSvpZ2f-LeamSpRNlOBefdlVBIZizd6nO7tqdYC4AuY94R079KDUnOMqzZbeuUJcYT0QmN0xKM2BNE07jFQqPeJuLR_vCTXDImwcS5ZwSvo36FPpu6N46Jml3XJL0Zotm403hTllmpvTqGxiIrIznMBQUxzxr8E3ft8LEJuup9geW4tqkQ-Epqm-xz-WwGQhdmz18eWs_x_hvttCUOPYFmAs
@sascha1337
sascha1337 / juno_prop_27.json
Created June 24, 2022 07:27
juno_prop_27.json
{
"id": "27",
"tx_hash": "8F53F44FB0E612116585FDC4583288C0FDF8219B1628BF05E5962B537C13229A",
"proposer": "juno1s4ckh9405q0a3jhkwx9wkf9hsjh66nmu769tz5",
"title": "Launch Hack Juno SubDAO",
"description": "Hack Juno SubDAO will be in charge of operating Hack Juno phase 1, including organizing the event, publicizing it, nominating projects / individuals, and paying out rewards. \\n\\nThis SubDAO will be funded by the Core Development Fund, as the Token allocation for Hack Juno was already spelled out during the initial distribution. It will abide by the Juno SubDAO Principles set forth in [Prop 25](https://www.mintscan.io/juno/proposals/25).\\n\\nMembers of the Hack Juno SubDAO will not be eligible for receiving Hack Juno prizes.\\n\\nMembers: \\n- [Jake Hartnell (Core 1 / DAO DAO)](https://twitter.com/JakeHartnell)\\n- [Kevin Garrison (Oni Validator / Terra Dev Fund)](https://twitter.com/KevinGarrison)\\n- [Max Juno (Wombat)](https://twitter.com/max_maxsolo)\\n- [Amber Case (DAO DAO / Earth+)](https:/