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 | |
function process_script_request { | |
if [[ $# -eq 0 ]]; then | |
show_help | |
else | |
case $1 in | |
help) show_help;; | |
back) serve_backend;; | |
back:prod) serve_backend_production;; | |
front) update_and_watch_assets;; |
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
// ==UserScript== | |
// @name Direct Download From fmovies | |
// @namespace http://maxyspark.com/ | |
// @version 0.1 | |
// @description Direct Download From fmovies | |
// @author MaxySpark | |
// @match http://fmovies.to/* | |
// @match https://fmovies.to/* | |
// @match http://9anime.to/* | |
// @match https://aniwave.to/* |
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
// /etc/polkit-1/rules.d/10-rules.rules | |
// PolKit rules to allow mounting, rebooting and network management without a password. | |
// User needs to be in storage, power and network groups. | |
polkit.addRule(function(action, subject) { | |
if (action.id.match("org.freedesktop.udisks2.") && subject.isInGroup("storage")) { | |
return polkit.Result.YES; | |
} | |
}); |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
''' | |
analyze /proc/<pid>/smaps | |
doc | |
http://liutaihua.github.io/2013/04/25/process-smaps-analysis.html |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* Adapted from https://www.reddit.com/r/FirefoxCSS/comments/ao3ydl/configuring_firefox_for_tree_style_tab_usage/ */ | |
/* https://superuser.com/questions/1424478/can-i-hide-native-tabs-at-the-top-of-firefox */ | |
/* https://github.com/Timvde/UserChrome-Tweaks/tree/master */ | |
/* Go to about:config and change the value of toolkit.legacyUserProfileCustomizations.stylesheets to true. */ | |
/* macOS: Place in `/Users/<username>/Library/Application Support/Firefox/Profiles/<random_characters>.default */ | |
/* Alternative, /Users/<username>/Library/Application Support/Firefox/Profiles/<random_characters>.default-esr */ |
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
/* | |
* ------------------------------------------------------------ | |
* "THE BEERWARE LICENSE" (Revision 42): | |
* <author> wrote this code. As long as you retain this | |
* notice, you can do whatever you want with this stuff. If we | |
* meet someday, and you think this stuff is worth it, you can | |
* buy me a beer in return. | |
* ------------------------------------------------------------ | |
*/ |
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
# Cloudflare API credentials for Certbot | |
## Generate API token: https://developers.cloudflare.com/api/tokens/create | |
dns_cloudflare_api_token = XXXXX | |
## The old insecure way that is no longer recommended | |
#dns_cloudflare_email = [email protected] | |
#dns_cloudflare_api_key = XXXXXX |