This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Label</key> | |
<string>com.poop.hello</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>say</string> | |
<string>poop</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import cv2 | |
import mediapipe as mp | |
from pathlib import Path | |
import argparse | |
parser = argparse.ArgumentParser( | |
description='Extract human 3D poses from videos using BlazePose model.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python script to export Houdini poly lines to SVG | |
# Paste content to Python node | |
# Replace EXPORT_PATH_HERE with desired output file location | |
node = hou.pwd() | |
geo = node.geometry() | |
filename = "EXPORT_PATH_HERE" | |
padding = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default preset | |
$tweaks = @( | |
### Require administrator privileges ### | |
"RequireAdmin", | |
### Privacy Tweaks ### | |
"DisableTelemetry", | |
"DisableWiFiSense", | |
"DisableSmartScreen", | |
"DisableWebSearch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Syncronize remote DB to local instance | |
remote_db="myremote-mongo.com" | |
local_db="localhost" | |
db_name="my_db_name" | |
# Get current date and store it in $date | |
printf -v date '%(%Y-%m-%d)T\n' -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z "$1" ] | |
then | |
echo "Usage: `basename "$0"` <bucket_name>" | |
fi | |
bucket_name=$1 | |
bucket_policy=`echo '{ | |
"Version":"2012-10-17", | |
"Statement":[{ | |
"Sid":"PublicReadGetObject", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Align object to target vector base on selected normal | |
// Useful when object has some weird orientation baked | |
// in the mesh and you wan to straighten it up. | |
// Point with normal from second wrangler input to align | |
vector from = point(1, 'N', 0); | |
// Allign "from" normal to the following vector | |
vector to = {0,1,0}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
""" | |
Bruteforce solution to the following assigment | |
1. Estimate how long it's going to take you, before you do it, and let us know what your guess is. | |
2. Time yourself at the end, compare results. | |
Guidelines and requirements: | |
-Do it in a pythonic, readable way. Readability is the priority. | |
-Instead of 1, 3, 4, 6, accept any user input for n integers or floas. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash function for convert video for twitter upload. | |
# Place this function in your bash profile | |
# | |
# Usage: convert_for_twitter <file_path> | |
# | |
# Source http://pimentoso.blogspot.com/2016/01/convert-videos-for-twitter-using-ffmpeg.html | |
function convert_for_twitter { | |
# Make sure to install ffmpeg with libx | |
# brew install ffmpeg --with-libvpx |
NewerOlder