Skip to content

Instantly share code, notes, and snippets.

florido

Block or report user

Report or block florido

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@florido
florido / showrss.py
Created May 19, 2019 — forked from lyralemos/showrss.py
Downloads torrents from showrss and adds them to transmission; Dependencies: Feedparser and Transmissionrpc
View showrss.py
import os
import feedparser
import transmissionrpc as tm
script_dir = os.path.dirname(__file__)
downloaded_file = os.path.join(script_dir, 'showrss.downloaded')
base_path = '/media/seagate/Video/Series/'
feed_url = 'http://showrss.info/user/448.rss'
feed = feedparser.parse(feed_url)
View gist:763c3b1ca299e4b371e925ef50629f5c
# Admin User
#-------------------------
myd=`date "+%Y-%m-%d-%H-%M-%S"`
# ovverride.plist
#-------------------------
sudo cat /var/db/launchd.db/com.apple.launchd/overrides.plist > ~/$myd-root-ovverrides.txt
sudo lsof -i > ~/$myd-root-lsof.txt
# blued
View 00-first.sh
#!/bin/bash
cname='mycomputername'
nbname='mybiosname'
# path to /Volumes/not-system-root-volumes
#vo=/Volumes/path
#---------------------------------------------------------------------
# Unlod airplay, cupsd, netbiosd
View disable-bluetooth.sh
#!/bin/bash
# disable bluetooth
# OS X 10.8.2
# 2012-10-08
home=$HOME
bk=$home/backup-bluetooth-extentions
mkdir $bk
@florido
florido / Disable facetime HD cameral Mac OS.MD
Created May 1, 2019 — forked from DOSputin/README.MD
Disable facetime HD cameral Mac OS
View Disable facetime HD cameral Mac OS.MD

Turn Off Rootless System Integrity Protection:

$ csrutil disable

Disable Camera:

all commands performaed as sudo

$ chmod a-r /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Resources/VDC.plugin/Contents/MacOS/VDC

View AppleScript for user input
#!/bin/bash
/usr/bin/osascript <<EOT
set theResponse to display dialog "What's your code?" default answer "" with icon stop buttons {"Cancel", "Continue"} default button "Continue" with hidden answer
display dialog "My Secret Code is " & (text returned of theResponse) & "."
EOT
View startosinstall Cheat Sheet
startosinstall command & syntax
Command: startosinstall
Requires root access: Yes
Parameters:
- -usage: Displays all parameters available for the command.
- -agreetolicense: Agrees to the license agreement during deployment (Required for automated deployments).
@florido
florido / Disable_Hibernate_mode
Created May 1, 2019 — forked from hariel18/Disable_Hibernate_mode
OSX: Disable Hibernate mode
View Disable_Hibernate_mode
#http://www.engadget.com/2011/08/22/why-hibernate-or-safe-sleep-mode-is-no-longer-necessary-in-os/
#https://www.idelta.info/archives/some-hidden-changes-in-os-x-el-capitan/
# disable hibernation
sudo pmset hibernatemode 0
# clear the image file
sudo rm -rf /var/vm/sleepimage
# inhibit file recreation
View .macos
#!/usr/bin/env bash
# ~/.osx — https://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@florido
florido / Pinboard.scpt
Created Apr 30, 2019 — forked from itst/Pinboard.scpt
Import and update your Pinboard bookmarks to DEVONthink
View Pinboard.scpt
(* Import and update your Pinboard bookmarks to DEVONthink
Based on work done by Christian Grunenberg on Mon Jan 23 2006,
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished.
By Sascha A. Carlin <https://sascha.carlin.de/> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items
Copyright (c) 2018. All rights reserved. *)
use framework "Foundation"
You can’t perform that action at this time.