Skip to content

Instantly share code, notes, and snippets.

View trustlix's full-sized avatar

Alex Zanetti de Lima trustlix

View GitHub Profile
@jelder
jelder / crossdomain.vcl
Created July 28, 2010 12:23
Example of serving static files from Varnish.
sub vcl_recv {
if (req.url == "/crossdomain.xml") {
error 843 "OK";
}
}
sub vcl_error {
if (obj.status == 843) {
set obj.status = 200;
set obj.http.Content-Type = "application/xml; charset=utf-8";
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@sieste
sieste / arch-brother-dcp-j4120dw-installation.md
Last active June 4, 2024 13:35
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yay brother-dcpj4120dw
@rnwolf
rnwolf / spacemacs-keybindings.md
Last active February 24, 2024 08:45 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn