-
Build tools:
sudo yum groupinstall "Development Tools" sudo yum install openssl openssl-devel sudo yum install git-core
-
Dependencies:
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 |
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 bash | |
# virtualapple-utm-link | |
# Karen/あけみ (akemin_dayo) | |
# https://gist.github.com/akemin-dayo/8337d8274deddfefae5d1543420ca0b1.git | |
# This is a cleaned up version of an internal script that I've been using while working on TotalFinder to create VirtualApple virtual machine instances that are hardlinked to a UTM virtual machine instance. | |
# It's particularly useful for entering One True recoveryOS (1TR) as well as using the other features found only in VirtualApple. | |
# UTM does not support entering 1TR for macOS 12 hosts (yet?), though it is now possible on macOS 13 hosts (utmapp/UTM/issues/3526). |
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 | |
set -e | |
# Re-run the script if not using sudo/root | |
function detect_current_uid() | |
{ | |
echo $(id -u) | |
}; | |
function _rerun_script_as_root() |