Skip to content

Instantly share code, notes, and snippets.

@rollwagen
rollwagen / lsof_netstat_on_macos.md
Last active November 25, 2024 09:58
lsof / netstat on macos

lsof / netstat on macos

lsof - list open files

  • display (list) all open TCP+UDP ports and grep for listening ones
    • sudo lsof -i -P | grep LISTEN
      COMMAND     PID           USER   FD   TYPE             DEVICE SIZE/OFF   NODE NAME
      launchd       1           root   11u  IPv6 0x26dd73cb700390df      0t0    TCP *:22 (LISTEN)
      ....

############################################################################################################ ################## ############################# ################## #############################

              This Gist collection contains all localstack related examples

################## ############################# ################## ############################# ############################################################################################################

@yujiorama
yujiorama / Dockerfile
Last active August 3, 2024 18:13
java dynaimc cds in container
FROM openjdk:12-jdk AS base
ENV SDKMAN_DIR=/usr/local/sdkman
WORKDIR /myapp
RUN set -x \
&& yum update -y \
&& yum install -y ca-certificates curl zip unzip sed binutils which \
&& curl -fsSL https://get.sdkman.io | bash \
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-5.0.5_Setup.md
Last active August 7, 2019 13:32
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Newer version available. Please see 5.1.1

How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Add/Link the following dependencies:

  • yarn add [email protected] react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add [email protected] && cd ../../"
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.2_Setup.md
Last active March 12, 2019 16:45
How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Newer version available. Please see 4.0.3

How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Add/Link the following dependencies:

  • yarn add [email protected] react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add [email protected] && cd ../../"
@giampaolotrapasso
giampaolotrapasso / Designing Event-Driven Systems links.md
Created August 1, 2018 09:56
List of links from Designing Event-Driven Systems by Ben Stopford
@kobymeir
kobymeir / teamcity_github_pr_branch.py
Last active June 6, 2019 13:26 — forked from dzzh/teamcity_github_pr_branch.py
Inject source and target branches from Github pull request into TeamCity CI
#!/usr/bin/env python
import os
import sys
import json
try:
from urllib.request import Request, urlopen # Python 3
except:
from urllib2 import Request, urlopen # Python 2

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
@Manouchehri
Manouchehri / rfc3161.txt
Last active April 23, 2025 11:02
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
// Originally taken from https://github.com/mgtitimoli/await-mutex
class Mutex {
constructor() {
this._locking = Promise.resolve();
this._locked = false;
}
isLocked() {
return this._locked;