Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #!/bin/bash | |
| # /etc/init.d/xvfb_daemon | |
| # Xvfb startup script. | |
| # Tom Meier <[email protected]> | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: xvfb | |
| # Short-Description: Start/stop/restart daemon | |
| # Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server | |
| # Example Use: |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
| <style> | |
| body { | |
| background: white; | |
| text-align: center; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| // ==UserScript== | |
| // @name Ingress Player Locations | |
| // @description Shows player locations on the Ingress Intel Map | |
| // @version 1.2 | |
| // @match http://www.ingress.com/intel | |
| // @run-at document-start | |
| // ==/UserScript== | |
| function override() { |
HTTP provides two ways for servers to control client-side caching of page components:
This breaks down as follows:
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
| # | |
| ## | |
| # logging platform/build | |
| ## | |
| # | |
| 9cc93738aeb5723e8f9d502e7ac6210c6f6d4073 "LRX22C" | |
| ff8b5b19bed47660bcc6319a73b5b78d1e6dacda "LRX22B" | |
| ced3fdcfa3d576fc42a6a8ad2ff0114af5643255 "LRX21Z" | |
| 205c1f8aa4429f742e768199c84ab5f4877b51ab "LRX21Y" | |
| 4eab14a6ac5d9deafef778c7bf65f72e130cb2b3 "LRX21X" |
| #!/bin/bash | |
| # pdfScale.sh | |
| # | |
| # Scale PDF to specified percentage of original size. | |
| # Ref: http://ma.juii.net/blog/scale-page-content-of-pdf-files. | |
| echo "This script doesn't handle files with spaces in them." | |
| SCALE=0.95 # scaling factor (0.95 = 95%, e.g.) |