Skip to content

Instantly share code, notes, and snippets.

View atlas-comstock's full-sized avatar
🎯
Focusing

atlas-booker atlas-comstock

🎯
Focusing
View GitHub Profile
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active April 24, 2025 07:18
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
var trans_data = '{"exorderno":"10004200000001100042","transid":"02113013118562300203","waresid":1,"appid":"20004600000001200046","feetype":0,"money":3000,"count":1,"result":0,"transtype":0,"transtime":"2013-01-31 18:57:27","cpprivate":"123456"}';
var key = 'MjhERTEwQkFBRDJBRTRERDhDM0FBNkZBMzNFQ0RFMTFCQTBCQzE3QU1UUTRPRFV6TkRjeU16UTVNRFUyTnpnek9ETXJNVE15T1RRME9EZzROVGsyTVRreU1ETXdNRE0zTnpjd01EazNNekV5T1RJek1qUXlNemN4';
var sign = '28adee792782d2f723e17ee1ef877e7 166bc3119507f43b06977786376c0434 633cabdb9ee80044bc8108d2e9b3c86e';
var md5 = require('md5');
// var base64_encode = require('base64').encode;
// var base64_decode = require('base64').decode;
var base64_encode = function (input) {
return new Buffer(input).toString('base64')
@hamidreza-s
hamidreza-s / RecoverEpmd.txt
Last active April 16, 2018 08:39
How to recover the connection between a distributed Erlang node and EPMD.
## node 1
$ erl
1> erl_epmd:start().
2> erl_node:register_node(ejabberd, 23456).
## Emergency 'epmd' Recovery
## node 2
$ erl -sname repair
1> net_adm:ping(ejabberd@hostname).
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 26, 2025 08:09
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@campoy
campoy / letitfail.go
Last active January 6, 2024 07:26
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3