Skip to content

Instantly share code, notes, and snippets.

View javdl's full-sized avatar
:octocat:
Crunching numbers

Joost javdl

:octocat:
Crunching numbers
View GitHub Profile
@javdl
javdl / Makefile
Created September 4, 2024 14:01 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
main_package_path = ./cmd/example
binary_name = example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@javdl
javdl / Makefile
Created September 4, 2024 14:01 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
main_package_path = ./cmd/example
binary_name = example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@javdl
javdl / readme.md
Created September 19, 2022 19:25 — forked from eddiewebb/readme.md
Hugo JS Searching with Fuse.js
@javdl
javdl / terminal-git-branch-name.md
Created July 28, 2022 09:03 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@javdl
javdl / LDAP.md
Created May 6, 2022 08:09 — forked from salrashid123/LDAP.md
Google Workspace Secure LDAP
@javdl
javdl / gsutil-upload.sh
Created April 14, 2020 17:05 — forked from mraible/gsutil-upload.sh
Upload optimized assets to Google Cloud Storage
# Rsync to remove old files
gsutil -m rsync -x '.git*' -c -d -r dist gs://bucket/
# Upload and gzip HTML, CSS and JavaScript
gsutil -m cp -z "html,css,js" -r dist/** gs://bucket/
# Set expires headers (6 months) on JS and CSS assets
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/assets/**
# Make sure there's no expiration headers on HTML files
@javdl
javdl / #linting.md
Last active June 28, 2022 14:31 — forked from codfish/#linting.md
Prettier + ESLint + airbnb config + Husky + lint-staged + commitlint + markdownlint

Joost:

  • added steps to fix markdown via cli (extra script)

  • autofix in vs code on save, add this setting:

    "editor.codeActionsOnSave": { "source.fixAll.markdownlint": true }

original:

@javdl
javdl / upgrade-ubuntu-with-Ansible.yml
Created November 7, 2019 08:46 — forked from kiview/upgrade.yml
Ubuntu upgrade with Ansible
---
- hosts:
- all
become: true
tasks:
- name: Update apt cache
apt: update_cache=yes
- name: Upgrade packages
apt: upgrade=dist
@javdl
javdl / WireGuard_Setup.txt
Created October 8, 2019 20:35 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be