This paste has moved into its own repo: https://github.com/techhazard/nixos-iso
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| screenshot () { | |
| # o - no openGL 3.0 (legacy mode) | |
| # u - hide cursor | |
| # b - border thickness (negative for inset) | |
| # c - border color (RGBA) | |
| # n - decoration level (window borders) | |
| maim \ | |
| -n 0\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Tab bar customization */ | |
| :root:-moz-lwtheme-brighttext { | |
| --chrome-background-color: #424242 !important; | |
| --chrome-color: #8f8f8f !important; | |
| --chrome-secondary-background-color: #363636 !important; | |
| --toolbox-border-bottom-color: #2e2e2e !important; | |
| } | |
| .tabbrowser-tab[visuallyselected="true"]:-moz-lwtheme { | |
| color: #dddddd !important; | |
| } |
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
Permalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import re | |
| import json | |
| import weechat | |
| from urllib2 import Request | |
| from urllib2 import urlopen | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check before running, may need intervention | |
| # Pass in the following to the script, or hardcode it. | |
| # Uncomment if hardcoding input. | |
| BOOT_PARTITION="/dev/sdg1" | |
| DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093" | |
| DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266" | |
| POOL="vault" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Compatible with and updated for Legion. | |
| Auras created by Adele of amiyuy.com. | |
| For images and video see: http://amiyuy.com/wow/2016/05/weakauras-2-exports-for-hunters-legion-and-7/ | |
| Also on Wago.io: https://wago.io/p/AmiYuy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Allow changing a property with by zoom-adjusted amount | |
| function zoom_invariant_add(prop, amt) | |
| amt = amt / 2 ^ mp.get_property_number("video-zoom") | |
| mp.set_property_number(prop, mp.get_property_number(prop) + amt) | |
| end | |
| -- Resets the pan if the entire image would be visible | |
| function zoom_check_center() | |
| local zoom = mp.get_property_number("video-zoom") | |
| local rot = mp.get_property_number("video-rotate") * math.pi / 180 |
This script downloads an RSS feed, assembles it's latest entry into a nice HTML file, downloads all of the assets required, generates a Kindle .mobi book with Amazon's official tool, sends me a Pushbullet notification that it worked, and uploads the .mobi book to my Dropbox.
If you wanted, you could then have a tool like this upload it to your Kindle wirelessly.
- Copy
parse.shanddropbox_uploader.shto your working directory that you'd like the script to live chmod +x parsh.sh dropbox_uploader.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim: set ft=python: | |
| # see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 | |
| # source: https://github.com/mpv-player/mpv/issues/2149 | |
| # source: https://github.com/mpv-player/mpv/issues/566 | |
| # source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy | |
| import vapoursynth | |
| core = vapoursynth.get_core() |