Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
👋

Adam Kaminski thimslugga

👋
View GitHub Profile
@thimslugga
thimslugga / gist:c0532d8e0475b8c9a636aa41969376a3
Created January 16, 2024 18:46 — forked from rcaetano/gist:5999184
Configure Amazon Linux EC2

Steps

  • Build tools:

      sudo yum groupinstall "Development Tools"
      sudo yum install openssl openssl-devel
      sudo yum install git-core
    
  • Dependencies:

@thimslugga
thimslugga / fmovies-9anime.user.js
Last active November 25, 2023 02:55 — forked from MaxySpark/fmovies-9anime.user.js
User Script to Get Direct Download Link of Movie Series and Anime from http://fmovies.to and http://9anime.to . First install "TAMPERMONKEY" OR "GREASEMONKEY" extention/plugin in your browser
// ==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/*
@thimslugga
thimslugga / gist:53509c721682bdd1f30a07ea149fd58e
Created November 22, 2023 15:23 — forked from radupotop/gist:4013294
PolKit rules to allow mounting, rebooting and network management without a password
// /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;
}
});
@thimslugga
thimslugga / linux_smap_analyzer.py
Created October 30, 2023 14:28 — forked from LanderlYoung/linux_smap_analyzer.py
Linux /proc/<pid>/smaps analyzer python script
#!/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
@thimslugga
thimslugga / macOS_automount_nfs.md
Last active September 29, 2023 17:14 — forked from L422Y/osx_automount_nfs.md
Auto-mount NFS share to /Volumes on macOS

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

@thimslugga
thimslugga / userChrome.css
Last active September 27, 2023 13:51 — forked from philipashlock/userChrome.css
Custom userChrome.css for use with Firefox + TST or Sidebery on macOS
@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 */
/*
* ------------------------------------------------------------
* "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.
* ------------------------------------------------------------
*/
@thimslugga
thimslugga / cloudflare.ini
Last active July 29, 2023 17:35 — forked from mattisz/ipmi-updater.py
Supermicro IPMI letsencrypt certificate updater
# 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
@thimslugga
thimslugga / virtualapple-utm-link
Created June 12, 2023 18:36 — forked from akemin-dayo/virtualapple-utm-link
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.
#!/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()