Skip to content

Instantly share code, notes, and snippets.

🌴
Coding

Sven hofmannsven

🌴
Coding
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
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
hofmannsven / readme.md
Last active Sep 17, 2019 — forked from guenthertheilen/gist:8401080
Install PHP Composer on Managed Hosting at Domainfactory.
View readme.md

Install Composer on Managed Hosting at Domainfactory

Step 1:

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

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

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.

Source

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

Reformat a bootable USB drive

1. Identify volume

df -h

Output may look something like this:

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

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.

Source: https://apple.stackexchange.com/a/83923

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

Fasd

Website: https://github.com/clvv/fasd

Usage

Jump to recent directory: z dirname

Jump to recent directory with interactive selection: zz

@hofmannsven
hofmannsven / README.md
Last active Aug 24, 2018
Notes on frontend performance
View README.md

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.