Skip to content

Instantly share code, notes, and snippets.

Awesome Go

Build Status Awesome A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

Contributing

Please take a quick gander at the contribution guidelines first. Thanks to all contributors; you rock!

If you see a package or project here that is no longer maintained or is not a good fit, please submit a pull request to improve this file. Thank you!

Contents

import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import id.haerulmuttaqin.jobfinder.App;
import id.haerulmuttaqin.jobfinder.Constants;
import id.haerulmuttaqin.jobfinder.data.api.ApiInterface;
import id.haerulmuttaqin.jobfinder.data.api.ConnectionServer;
@nginx-gists
nginx-gists / ubuntu_install.sh
Last active March 17, 2025 15:16
Automating Installation of WordPress with NGINX Unit on Ubuntu
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ];then
>&2 echo "This script requires root level access to run"
exit 1
fi
if [ -z "${WORDPRESS_DB_PASSWORD}" ]; then
>&2 echo "WORDPRESS_DB_PASSWORD must be set"
>&2 echo "Here is a random one that you can paste:"
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active April 7, 2025 19:04
Building a react native app in WSL2
data_dir = "/var/lib/vector"
# ------------------ SYSLOG message pipe ------------------ #
[sources.syslog_pipe_in]
type = "socket"
mode = "udp"
address = "127.0.0.1:3333"
[transforms.syslog_pipe_parsing]
@cmod
cmod / hugofastsearch.md
Last active March 1, 2025 20:50 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@nfsarmento
nfsarmento / nginx-wordpress.conf
Last active March 26, 2025 13:12
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@slint
slint / zenodo-versioning.sh
Created February 11, 2020 12:15
Zenodo REST API example in cURL
#!/bin/bash
BASE_URL="https://sandbox.zenodo.org"
API_TOKEN="<your-token>"
# 1. Create the first version
curl -i -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_TOKEN" \
"$BASE_URL/api/deposit/depositions" \
@PedroEscudero
PedroEscudero / bubble.php
Last active January 29, 2022 06:52
Bubble script for testing speed of PHP-8
<?php
function bubble_sort($array)
{
$start = microtime(true);
do
{
$sw = false;
for($i = 0, $size = count($array) - 1; $i < $size; $i++)
{
if( $array[$i] > $array[$i + 1] )