Skip to content

Instantly share code, notes, and snippets.


Sven hofmannsven

Block or report user

Report or block hofmannsven

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hofmannsven / .zshrc
Created Oct 4, 2018
Notes on working with Cypress JavaScript end-to-end testing framework.
View .zshrc
function cypress() {
( ./node_modules/.bin/cypress $* )
hofmannsven /
Last active Sep 17, 2019 — forked from guenthertheilen/gist:8401080
Install PHP Composer on Managed Hosting at Domainfactory.

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH. Create your .bashrc:

touch .bashrc
hofmannsven /
Last active Dec 22, 2018 — forked from sergejmueller/index.html
Nginx proxy configuration for Google Analytics

Google Analytics Nginx Proxy

Google PageSpeed Insights flags browser caching of Google Analytics:

Leverage browser caching

Set up a proxy in your Nginx configuration file to address this issue.


hofmannsven /
Last active Jul 25, 2019
Reformat a bootable USB drive on the command line interface.

Reformat a bootable USB drive

1. Identify volume

df -h

Output may look something like this:

Filesystem  Size  Used  Avail  Use%  Mounted on
hofmannsven /
Created Dec 6, 2017
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.


hofmannsven /
Last active Nov 29, 2018
Notes on working with Fasd and fzf.




Jump to recent directory: z dirname

Jump to recent directory with interactive selection: zz

hofmannsven /
Last active Aug 24, 2018
Notes on frontend performance

Frontend Performance

Notes & tips

  • Reflow (Mozilla) = Layout (Webkit)
  • Loading: Layout > Paint > Composition
  • Composition is on GPU like translate > skips layout and paint loading cycle
  • Aim for 60 FPS
  • Only change properties that trigger compositing rather than layout or paint
  • Use requestAnimationFrame
You can’t perform that action at this time.