Skip to content

Instantly share code, notes, and snippets.

@shrtkv
shrtkv / manjaro.txt
Created June 2, 2023 16:02 — forked from ghadj/manjaro.txt
Manjaro i3 on a HiDPI Display
1. Increase DPI and terminal font size in /home/[user]/.Xresources
sudo nano ~/.Xresources
Change Xft.dpi:, the first item listed, to a higher value (than the default 90), perhaps 140 to start (to avoid overshooting). I like 150, but different setups will call for values that are lower or higher.
Change XTerm*faceSize: to a higher value, perhaps 14 (as I use).
Change URxvt.font: from 9x15,xft:TerminessTTFNerdFontMono to xft:TerminessTTFNerdFontMono:size=14, removing 9x15 (or whatever value is shown at the start) and adding :size=14 or some other specific value.
@mrbar42
mrbar42 / README.md
Last active July 22, 2024 07:54
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@nginx-gists
nginx-gists / api_backends.conf
Last active July 1, 2024 07:50 — forked from lcrilly/api_backends.conf
Deploying NGINX Plus as an API Gateway, Part 1
upstream warehouse_inventory {
zone inventory_service 64k;
server 10.0.0.1:80;
server 10.0.0.2:80;
server 10.0.0.3:80;
}
upstream warehouse_pricing {
zone pricing_service 64k;
server 10.0.0.7:80;
@brunomacf
brunomacf / gitlab-ci.yml
Last active October 31, 2019 09:55
kube-test gitlab-ci
image: docker:latest
services:
- docker:dind
stages:
- build
- deploy
variables:
CONTAINER_DEV_IMAGE: registry.gitlab.com/brunomacf/kube-test:$CI_COMMIT_SHA
# lazyload nvm
# all props goes to http://broken-by.me/lazy-load-nvm/
# grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/
lazynvm() {
unset -f nvm node npm npx
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
if [ -f "$NVM_DIR/bash_completion" ]; then
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion