Skip to content

Instantly share code, notes, and snippets.

View thomd's full-sized avatar

Thomas Dürr thomd

  • Hamburg, Germany
View GitHub Profile
@thomd
thomd / bootstrap.sh
Created September 5, 2018 20:44
Build a Website with Modern Tooling and No Frameworks
#!/usr/bin/env bash
mkdir -p vanilla-website/{public/assets/{images,scripts,styles},src/{scripts,styles}}
cd vanilla-website
cat <<EOF > .babelrc
{
"presets": [
[
"@babel/preset-env",

Automatically Prepend a Jira Issue ID to Git Commit Messages

Use a git hook to match a Jira issue ID from the current branch, and prepend it to every commit message

Assuming the current branch contains a Jira issue ID, you can use a git hook script to prepend it to every commit message.

  1. Create an empty commit-msg git hook file, and make it executable. From your project's root directory:

     install -b -m 755 /dev/null .git/hooks/commit-msg
    
  2. Save the following script to the newly-created .git/hooks/commit-msg file:

@thomd
thomd / aws-nginx-jenkins.sh
Last active April 14, 2018 13:47
Install Jenkins on AWS Ubuntu with Ngins as Proxy
#!/usr/bin/env bash
# Install Jenkins and Nginx as proxy on AWS
# [source: https://serversforhackers.com/c/installing-jenkins]
#
#
# USAGE
#
# curl -sSL https://gist.githubusercontent.com/thomd/8708966d6b55e5b32c8da9b1fb7fa48f/raw/aws-nginx-jenkins.sh | sudo sh
# open http://<IP>
@thomd
thomd / npm-scripts-lifetime.sh
Created January 9, 2018 21:18
Test lifecycle of npm scripts
#!/usr/bin/env bash
# npm help 7 npm-scripts
scripts=(prepublish prepare prepublishOnly prepack postpack publish postpublish preinstall install postinstall
preuninstall uninstall postuninstall preversion version postversion pretest test posttest prestop stop
poststop prestart start poststart prerestart restart postrestart preshrinkwrap shrinkwrap postshrinkwrap)
n=${#scripts[@]}
@thomd
thomd / jenkins-plugins.md
Last active March 16, 2019 18:55
List of Jenkins Plugins #list #jenkins
@thomd
thomd / node-modules.md
Created October 26, 2017 14:08
Node Modules I like

Node Modules

@thomd
thomd / vscode-plugins.md
Last active April 5, 2023 09:52
An opinionated list of VS Code Plugins for Webdevelopment #vscode #list #plugin
@thomd
thomd / wsp-tools.md
Last active September 15, 2017 13:17
Tools for Testing Web Site Performance