Skip to content

Instantly share code, notes, and snippets.

View sleepdefic1t's full-sized avatar

₴Ⱡ33₱ sleepdefic1t

View GitHub Profile
#define NAPI_EXPERIMENTAL
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <node_api.h>
#include <uv.h>
@sleepdefic1t
sleepdefic1t / Dockerfile
Created July 14, 2023 04:31
Dockerfile for Solar Network Core
FROM ubuntu:22.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
build-essential \
curl \
git \
ntp \
postgresql \
@sleepdefic1t
sleepdefic1t / git-squash-merge-apply.md
Created March 29, 2023 18:35 — forked from izumskee/git-squash-merge-apply.md
GIT: Squash, merge and apply patch

Squash and create patch

If your commits are in the "newlines" branch and you have switched back to your "master" branch already, this should do the trick:

git checkout -b tmpsquash
git merge --squash newlines
git commit -a -m "My squashed commits"
git format-patch master
@sleepdefic1t
sleepdefic1t / css-loading-animation-12.markdown
Created January 4, 2023 07:20
CSS loading animation 12
@sleepdefic1t
sleepdefic1t / sanitization_filter.rb
Last active November 2, 2022 14:06
Github Markdown CSS Sanitization Filter
# src: https://github.com/gjtorikian/html-pipeline/blob/84c75b3d123c5219238c5f01c2b7de7ea73755cd/lib/html/pipeline/sanitization_filter.rb
# frozen_string_literal: true
HTML::Pipeline.require_dependency('sanitize', 'SanitizationFilter')
module HTML
class Pipeline
# HTML filter with sanization routines and allowlists. This module defines
# what HTML is allowed in user provided content and fixes up issues with
{
"basics": {
"name": "Simon Downey",
"label": "Developer",
"image": "https://raw.githubusercontent.com/gist/sleepdefic1t/e6586a969da06b42bf5d0f00df7fa3ed/raw/e086964551858a538398e0668a4bd13dca54beaa/simon.svg",
"email": "sl33p.eth@pm.me",
"url": "sl33p.eth.link",
"summary": "Hello! I'm a crypto dev and technical writer. When I'm not busy programming microcontrollers, documenting Blockchain software, and saving the world from centralization, I enjoy creating music and exploring the latest technological trends.",
"location": {
"address": "",
@sleepdefic1t
sleepdefic1t / css-diagonal-split-button.markdown
Created February 9, 2022 14:05
CSS diagonal split button

CSS diagonal split button

CSS two button that is split diagonally in the middle. Perfect for providing simple button options, i.e. Save\Delete.

A Pen by Nathan White on CodePen.

License.

@sleepdefic1t
sleepdefic1t / apdu_util.py
Last active November 1, 2021 20:14
ARK Ledger Nano X/S APDU Wrapper Util
#!/usr/bin/env python3
# /*****************************************************************************
# * Copyright (c) ARK Ecosystem <info@ark.io>
# *
# * The MIT License (MIT)
# *
# * Permission is hereby granted, free of charge, to any person obtaining a
# * copy of this software and associated documentation files (the "Software"),
# * to deal in the Software without restriction, including without limitation
{
"data": {
"version": 2,
"network": 23,
"typeGroup": 1,
"type": 0,
"nonce": "1",
"senderPublicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
"fee": "10000000",
"amount": "200000000",
@sleepdefic1t
sleepdefic1t / ark-docs-wordlist.json
Last active February 25, 2021 04:37
ark.dev doc dictionary wordlist (unsorted)
{
"words": [
"AIPs",
"ARKies",
"ATNG",
"Adafruit",
"Aewxf",
"Aibx",
"Airbnb",
"Alamofire",