Sophos Anti Virus hogging your processor? Can't remove it because of tamper protection?
# change into preferences
cd /Library/Preferences
# confirm locations of sophos files
ls com.sophos.*
javascript: (function () { | |
function creator(e, t, n) { | |
var r = document.createElement(n); | |
var att = document.createAttribute("style"); | |
att.value = "max-width:120px"; | |
r.setAttributeNode(att); | |
var i = document.createTextNode(t); | |
r.appendChild(i); | |
e.appendChild(r); | |
} |
import os | |
cmd = 'raspistill -n -t 2000' | |
cmd += time.strftime(" -o /home/pi/python_scripts/py-picam/images/p_%Y%m%d_%H%M%S") +'.jpg' | |
os.system(cmd) |
/** | |
* Simple animation to illustrate Processing.org HD video export using FFmpeg | |
* See this post for complete details | |
* http://owenmundy.com/blog/2013/01/use-processing-and-ffmpeg-to-export-hd-video/ | |
* 2013 Owen Mundy owenmundy.com | |
*/ | |
float xtheta = 0.0; | |
float ytheta = 0.0; |
<?php | |
/** | |
* Convert a Google Takeout JSON file to CSV table format | |
* @author Owen Mundy owenmundy.com | |
* Note: Make sure PHP has enough memory allotted on your system to handle large strings | |
* Instructions: | |
* 1. Download PHP file and place next to your JSON file | |
* 2. Rename string pointing to your data file | |
* 3. On command line run $ php index.php |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v2.min.js?2.9.3"></script> | |
<style> | |
.link { | |
stroke: #aaa; | |
} |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous"> |
Sophos Anti Virus hogging your processor? Can't remove it because of tamper protection?
# change into preferences
cd /Library/Preferences
# confirm locations of sophos files
ls com.sophos.*
#!/bin/bash | |
# orginal https://gist.github.com/lukebussey/70fe3b245c7b55fa41300670d2698e54 | |
# make file and run sudo chmod +x kill_sophos | |
# delete all files | |
sudo rm -R /Library/Sophos* | |
sudo rm -R /Library/Application\ Support/Sophos* | |
sudo rm -R /Library/Preferences/com.sophos.* | |
sudo rm /Library/LaunchDaemons/com.sophos.* |
#!/bin/bash | |
## Convert non-transparent pixels in a PNG image to a solid color "silhouette" | |
## Uses imagemagick | |
# install imagemagick | |
brew update && brew install imagemagick | |
# convert input.png to silhouette | |
convert input.png -fill "cyan" -colorize 100 output.png |