Skip to content

Instantly share code, notes, and snippets.

View sjison's full-sized avatar

Simplicio Jison Jr. sjison

View GitHub Profile

Solana validator v1.14.17 startup + catchup logs

This document contains a listing of solana-validator logs that outline noteworthy steps during node startup + catchup process. Several quick notes:

  • These logs are from an actual node restart with tip of v1.14 branch against mainnet-beta
  • Lines starting with // are inserted commentary
  • Some newlines have been inserted to allow for better viewing
  • This node was running with the default logging RUST_LOG=solana=info
  • Hardware config:
    • AMD EPYC 7402P 24-Core Processor
    • 256 GB RAM
@huksley
huksley / docker-compose.yml
Last active August 31, 2018 17:04
Launches fully configured Graylog 2.3.1 instance
#
# Launches configured Graylog 2.3.1 instance
#
# - Docker-compose 1.16 required
# - Please configure following according to your network:
# * gelf-address URL (for each container)
# * GRAYLOG_WEB_ENDPOINT_URI
# - After launch define GELF tcp and GELF udp inputs in graylog web ui
# - Containers send logging to the graylog itself
# - By default tuned to 30 days retention
@sixeyed
sixeyed / Set-ProfileForDocker.ps1
Last active December 2, 2024 20:30
PowerShell aliases for working with Docker on Windows - save to $profile
#docker rm $(docker ps -a -q)
function Remove-StoppedContainers {
foreach ($id in & docker ps -a -q) {
& docker rm $id }
}
#docker rmi $(docker images -f "dangling=true" -q)
function Remove-DanglingImages {
foreach ($id in & docker images -q -f 'dangling=true') {
& docker rmi $id }
@jakobt
jakobt / woocommerce-csharp-client
Created January 19, 2015 20:06
Consuming WooCommerce REST API from C#
//C# port of the https://github.com/kloon/WooCommerce-REST-API-Client-Library
//Including handling of woocommerce insisting on uppercase UrlEncoded entities
public class WoocommerceApiClient
{
private static byte[] HashHMAC(byte[] key, byte[] message)
{
var hash = new HMACSHA256(key);
return hash.ComputeHash(message);
}
@jittuu
jittuu / coding-guidelines.md
Last active December 12, 2019 16:40
C# Coding Guidelines

This document is stolenbased on [nuget coding guidelines][nuget] and microsoft [internal coding guidlines][ms-coding-guidelines].

Coding Guidelines

Let's face it. No matter what coding guidelines we choose, we're not going to make everyone happy. While we would like to embrace everyone's individual style, working together on the same codebase would be utter chaos if we don't enforce some consistency. When it comes to coding guidelines, consistency can be even more important than being "right."

Definitions

  • [Camel case][] is a casing convention where the first letter is lower-case, words are not separated by any character but have their first letter capitalized. Example: thisIsCamelCased.
  • [Pascal case][] is a casing convention where the first letter of each word is capitalized, and no separating character is included between words. Example: ThisIsPascalCased.
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@jrusbatch
jrusbatch / AvailablePorts.cs
Created December 5, 2012 02:17
Find an Available Port with C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.NetworkInformation;
using System.Net;
namespace AvailablePort
{
class Program