Skip to content

Instantly share code, notes, and snippets.

View mashiox's full-sized avatar
🕵️‍♂️
Building better questions

Matthew Walther mashiox

🕵️‍♂️
Building better questions
View GitHub Profile
@Scoder12
Scoder12 / README.md
Last active April 14, 2024 21:37
Valutwarden config for docker-compose

Vaultwarden docker-compose nginx

My setup for vaultwarden. Uses a custom certificate authority to sign certificates. Expects vaultwarden.crt and vaultwarden.pem to be in ./crts.

See https://github.com/ttionya/vaultwarden-backup for instructions on how to configure rclone for backups.

@dnno
dnno / vaultwarden.service
Last active August 4, 2021 13:33
Systemd service for Vaultwarden
[Unit]
Description=Vaultwarden
After=docker.service network.target
Requires=docker.service network-online.target
[Service]
RemainAfterExit=true
WorkingDirectory=/home/pi
ExecStartPre=/usr/local/bin/docker-compose pull --quiet
ExecStart=/usr/local/bin/docker-compose up
@Tardo
Tardo / RPI4B.md
Last active May 22, 2023 11:23
Raspberry Pi 4B #RPI
@senderle
senderle / hand-modify-pdf.md
Created September 23, 2020 15:03
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.

@stettix
stettix / things-i-believe.md
Last active March 20, 2024 17:45
Things I believe

Things I believe

This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.

Agree? Disagree? Feel free to let me know at @JanStette. See also my blog at www.janvsmachine.net.

Fundamentals

Keep it simple, stupid. You ain't gonna need it.

@phpdave11
phpdave11 / php-cs-fixer.json
Created August 12, 2019 14:31
php code validation with phpnsc, php-cs-fixer, phpcpd, phpmd, and phpstan
{
"@Symfony": true,
"@PSR2": true,
"array_syntax": {
"syntax": "short"
},
"hash_to_slash_comment": true,
"heredoc_to_nowdoc": true,
"modernize_types_casting": true,
"multiline_comment_opening_closing": true,
@sleepyfox
sleepyfox / 2019-07-25-users-hate-change.md
Last active December 10, 2023 18:20
'Users hate change'

'Users hate change'

This week NN Group released a video by Jakob Nielsen in which he attempts to help designers deal with the problem of customers being resistant to their new site/product redesign. The argument goes thusly:

  1. Humans naturally resist change
  2. Your change is for the better
  3. Customers should just get used to it and stop complaining

There's slightly more to it than that, he caveats his argument with requiring you to have of course followed their best practices on product design, and allows for a period of customers being able to elect to continue to use the old site, although he says this is obviously only a temporary solution as you don't want to support both.

@otknoy
otknoy / docker-compose.yml
Last active May 29, 2020 00:19
monitoring
version: '2'
services:
grafana:
image: grafana/grafana:6.1.4
volumes:
- ./grafana:/var/lib/grafana
ports:
- 3000:3000
mem_limit: 128m
prometheus:
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 15, 2024 20:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@bantya
bantya / php-webscraping.md
Created July 22, 2018 15:23 — forked from anchetaWern/php-webscraping.md
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}