These git hooks runs bundle
or npm install
automatically whenever you:
git checkout
a new branch with a different Gemfile or package.json.git pull
a change to Gemfile or package.json.
cd awesome_git_repo
#!/bin/sh | |
# wget https://gist.githubusercontent.com/stefansundin/c89fd15bae5a58831790/raw/make-chrome-app.sh | |
# chmod +x make-chrome-app.sh | |
# ./make-chrome-app.sh | |
echo "Note that the app will run with a separate data dir and thus not have your regular extensions and settings." | |
echo | |
echo "What should the app be called?" | |
read name | |
echo |
#!/bin/bash | |
# This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch. | |
# There are six variants that I have built: | |
# - pre-commit: stops commits to master/main/develop branches. | |
# - pre-commit-2: also includes a core.whitespace check. | |
# - pre-commit-3: the core.whitespace check and an EOF-newline-check. | |
# - pre-commit-4: only the core.whitespace check. | |
# - pre-commit-5: elixir formatting check. | |
# - pre-commit-6: prettier formatting check. | |
# Set the desired version like this before proceeding: |
Based on SubRip 1.50 Beta 4.
Improvements:
// ==UserScript== | |
// @name LTU Username | |
// @namespace https://gist.github.com/stefansundin/ | |
// @homepage https://gist.github.com/stefansundin/8214929 | |
// @downloadURL https://gist.github.com/stefansundin/8214929/raw/ltu_username.user.js | |
// @version 1.0 | |
// @author Stefan Sundin | |
// @description Autofill username | |
// @include https://logon.pub.ltu.se/cgi-bin/logon.cgi | |
// @include https://fronter.com/ltu/ |
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="Flattr button" author="Stefan Sundin" width="55" height="62" scrolling="false"></ModulePrefs> | |
<UserPref name="url" datatype="string" default_value="" /> | |
<UserPref name="uid" datatype="string" default_value="" /> | |
<UserPref name="title" datatype="string" default_value="" /> | |
<UserPref name="desc" datatype="string" default_value="" /> | |
<UserPref name="cat" datatype="string" default_value="software" /> | |
<UserPref name="lang" datatype="string" default_value="en_GB" /> | |
<UserPref name="tags" datatype="string" default_value="" /> |
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="YouTube iframe embed" author="Stefan Sundin" width="640" height="390"></ModulePrefs> | |
<UserPref name="id" datatype="string" default_value="" /> | |
<UserPref name="width" datatype="string" default_value="" /> | |
<UserPref name="height" datatype="string" default_value="" /> | |
<UserPref name="args" datatype="string" default_value="" /> | |
<Content type="html"> | |
<![CDATA[ | |
<script type="text/javascript"> |
A simple node.js server to redirect whatever.dev
to http://whatever.dev
. It also redirects you to other websites based on your query (see tips below).
You can quickly go to different websites with certain queries:
mdn css transition
will search MDN for css transition