Skip to content

Instantly share code, notes, and snippets.

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

Nicholas nixxholas

🏠
Working from home
View GitHub Profile
---
id: getting-started
title: Getting Started
---
## Objectives
- [Creation of API key](#creating-an-api-key)
- [Connect from your application](#connect-from-your-application)
- [Python](#python-example)
- [NodeJS](#nodejs-example)
@nixxholas
nixxholas / README.txt
Created August 30, 2021 06:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@nixxholas
nixxholas / Basic.sol
Created August 30, 2021 06:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
}
@nixxholas
nixxholas / native_associated_token_account.rs
Created June 5, 2021 16:35
So I wasted my time on processing an instruction rather than reading it
use std::str::FromStr;
use diesel::PgConnection;
use rayon::prelude::*;
use solana_client::rpc_client::RpcClient;
use solana_program::account_info::{AccountInfo, IntoAccountInfo};
use solana_sdk::pubkey::Pubkey;
use spl_associated_token_account::processor::process_instruction;
use crate::models::instruction_properties::NewInstructionProperty;
@nixxholas
nixxholas / DM EX4 Create
Created February 25, 2021 07:47
DM's Create for EX4
drop database if exists dm_ex4;
create database dm_ex4;
use dm_ex4;
drop table if exists assessment;
create table assessment
(
AID int not null primary key,
Aname varchar(15),
weight decimal(3, 2)
@nixxholas
nixxholas / gist:80b16f82fe8f0e04676d2ffcfe7a7a25
Created February 7, 2021 07:39
OS Dump for SSL handshake issue on Big Sur
Process: dotnet [32881]
Path: /usr/local/share/dotnet/dotnet
Identifier: dotnet
Version: 0
Code Type: X86-64 (Native)
Parent Process: dotnet [32879]
Responsible: rider [11830]
User ID: 501
Date/Time: 2021-02-07 15:31:48.378 +0800
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
# Aliases
alias g='git'
#compdef g=git
alias gst='git status'
#compdef _git gst=git-status
alias gd='git diff'
#compdef _git gd=git-diff
alias gdc='git diff --cached'
@nixxholas
nixxholas / Verifying my Peepeth
Created September 30, 2019 15:33
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x725322fb146d84d2f3a2d43c8cafd515b1cc68e8
@nixxholas
nixxholas / jira_letsencrypt.md
Created August 22, 2019 15:32 — forked from dborin/jira_letsencrypt.md
HOWTO Configure Atlassian Jira to use Letsencrypt certificate

HOWTO Configure Atlassian Jira to use Letsencrypt certificate with default Tomcat

This is a primer for installing a Letsencrypt certificate on a Jira server that is running the Jira provided, default Tomcat for serving webpages.

I found lots of information about how to do it using a free-standing Tomcat or nginx, but nothing about this particular combination. I hope it helps you!

Obviously, in all the examples, you need to replace jira.example.com with your own domain! And (duh) you need to use your own password, not 1234

You need to have installed Java (outside the scope of this document). Then in your user's shell RC file and probably root's RC file, add

@nixxholas
nixxholas / keybase.md
Created June 24, 2019 06:49
When legit?

Keybase proof

I hereby claim:

  • I am nixxholas on github.
  • I am nixholas (https://keybase.io/nixholas) on keybase.
  • I have a public key ASDR6N9MCSmuDp-2Ug_yXLEhZPwg96vbzHAbsdAHLS0BoAo

To claim this, I am signing this object: