Skip to content

Instantly share code, notes, and snippets.

View project0's full-sized avatar
:octocat:

Richard Hillmann project0

:octocat:
View GitHub Profile
@sindresorhus
sindresorhus / esm-package.md
Last active May 8, 2025 09:12
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 11, 2025 11:33
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@project0
project0 / reaction.html
Last active February 2, 2020 18:33
Get random picture from tumblr blog like devopsreactions.tumblr.com
<html>
<head>
<title>DevOps Reaction</title>
<style type="text/css">
body { background-color:#000; color:#fff }
h1 { font-size:35pt }
</style>
<script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
<script>
@tolleiv
tolleiv / README.md
Last active August 10, 2021 21:01
Fortigate 300C logstash log parsing

Fortigate 300c log parsing in Logstash

QA ca be done with:

logstash-1.4.2/bin/logstash rspec --format documentation test.rb

@bodokaiser
bodokaiser / config.go
Created June 26, 2014 08:16
Simple example how to merge JSON files.
package main
import (
"log"
"fmt"
"encoding/json"
)
var conf1 = `
{
@TrevorS
TrevorS / git-tree-alias.sh
Created March 27, 2014 14:47
git tree alias.
git config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit"
@mahata
mahata / random.scala
Last active June 5, 2021 20:38
random ascii string generator in Scala
object randomSample {
def randomString(length: Int) = Stream.continually(util.Random.nextPrintableChar) take length mkString
}
println(randomSample.randomString(64))