Skip to content

Instantly share code, notes, and snippets.

View hofmannsven's full-sized avatar
🌴
Coding

Sven hofmannsven

🌴
Coding
View GitHub Profile
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

"Where from" metadata for macOS files

The link listed in "Where from" is stored as an extended attribute named "com.apple.metadata:kMDItemWhereFroms" on the file in the file system. It is not actually saved within the file itself. (source)

Remove "Where from" for macOS files

xattr -d com.apple.metadata:kMDItemWhereFroms filename.webm
@hofmannsven
hofmannsven / filters.txt
Created December 29, 2022 05:02
uBlock Origin Settings
# Source: https://letsblock.it/filters/youtube-shorts
www.youtube.com##ytd-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-guide-entry-renderer)
www.youtube.com##ytd-mini-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-mini-guide-entry-renderer)
www.youtube.com##ytd-browse #dismissible ytd-rich-grid-slim-media[is-short]:upward(ytd-rich-section-renderer)
www.youtube.com##ytd-browse ytd-grid-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-browse ytd-rich-item-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-search ytd-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-watch-next-secondary-results-renderer ytd-compact-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-browse ytd-grid-video-renderer:has(span.ytd-t
@hofmannsven
hofmannsven / editor.css
Last active April 7, 2022 16:34
WordPress block editor spacer block placeholder styles.
.block-editor .wp-block-spacer {
border: 2px dashed #cbd5e1;
background-color: #f1f5f9;
}
@hofmannsven
hofmannsven / README.md
Created April 26, 2020 18:39
Notes on working with Homebrew

Homebrew

Website: https://brew.sh

Services

Show installed services: brew list

Show runninng services: brew services list

@hofmannsven
hofmannsven / google_fonts.md
Created April 2, 2020 18:16 — forked from cvan/google_fonts.md
get ttf, woff, woff2 from Google Fonts

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 January 28, 2024 18:34
Notes on working with GitHub Actions and Laravel Nova.
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 October 4, 2018 22:10
Notes on working with Cypress JavaScript end-to-end testing framework.
function cypress() {
( ./node_modules/.bin/cypress $* )
}
@hofmannsven
hofmannsven / readme.md
Last active November 2, 2022 14:56 — forked from gthln/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