Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
🏠
Working from home

adam kaminski thimslugga

🏠
Working from home
View GitHub Profile
@thimslugga
thimslugga / modify_screensharing.sh
Created July 24, 2024 10:20 — forked from timsutton/modify_screensharing.sh
Enabling screen sharing on macOS Monterey as of 12.1 beta 2
#!/bin/bash
# A cleaner alternative to this approach, but which requires a restart, is to populate TCC's SiteOverrides.plist inside
# the TCC app support directory with the following:
# <?xml version="1.0" encoding="UTF-8"?>
# <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
# <plist version="1.0">
# <dict>
# <key>Services</key>
# <dict>
@thimslugga
thimslugga / README.md
Created April 24, 2024 17:28 — forked from YOU54F/README.md
Apple Silicon and Virtual Machines: Beating the 2 VM Limit
@thimslugga
thimslugga / bash_clean_code.sh
Created March 4, 2024 01:27 — forked from polyakovin/bash_clean_code.sh
Clean code example using Bash language
#!/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;;
@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 */