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
@nixxholas
nixxholas / github_gpg_key.md
Created March 1, 2018 04:56 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# Mac
@nixxholas
nixxholas / a-look-at-an-article-the-state-of-net-in-2018.md
Last active March 10, 2019 03:27
A look at Progress’ report on the state of .NET in 2018

As first stated in the whitepaper, the dotnet yesterday was just as silo'ed as it was, being able to run on its own, that's all.

The Old .NET Family

Today, we're looking at one of the world's most mature framework that is now turning into somewhat like an open community project. IMO, its a move to reorganize a family of platforms that would better suit today's needs as .NET is long due for that. In an attempt to cover how .NET Core has changed in my personal opinion, .NET has been recreated from the ground up by creating a universal base class library known as the .NET Standard, notably .NET Standard 2.0 as of the time of this article. This means that the API that you have implemented might more or less work well with another .NET app based on another platform such as Xamarin or Unity. For instance, platform specific implementations/APIs that are exclusively meant to be built for Unity will exist there, but commonly used libraries a

@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:

@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 / Verifying my Peepeth
Created September 30, 2019 15:33
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x725322fb146d84d2f3a2d43c8cafd515b1cc68e8
# 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 / 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
@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 / 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 / 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;
}