Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
Coding

Sven hofmannsven

🌴
Coding
View GitHub Profile
@hofmannsven
hofmannsven / README.md
Created Apr 26, 2020
Notes on working with Homebrew
View README.md

Homebrew

Website: https://brew.sh

Services

Show installed services: brew list

Show runninng services: brew services list

@hofmannsven
hofmannsven / google_fonts.md
Created Apr 2, 2020 — forked from cvan/google_fonts.md
get ttf, woff, woff2 from Google Fonts
View google_fonts.md

ttf

curl 'https://fonts.googleapis.com/css?family=Karla'

woff2

curl 'https://fonts.googleapis.com/css?family=Karla' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'User-Agent: AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116'

woff

@hofmannsven
hofmannsven / .env.github
Last active May 7, 2020
Notes on working with GitHub Actions and Laravel Nova.
View .env.github
APP_ENV=ci
APP_KEY=
APP_DEBUG=true
APP_URL=https://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=33306
@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 May 27, 2020 — 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 Jul 7, 2020 — 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

You can’t perform that action at this time.