Skip to content

Instantly share code, notes, and snippets.

@zmwangx
zmwangx / plist2json
Last active August 26, 2022 17:19
Simple plist to JSON converter in Python.
#!/usr/bin/env python3
import argparse
import base64
import collections
import datetime
import json
import plistlib
import sys
import tempfile
#!/bin/bash
#
# Faster toolchain build: skips as much as possible.
#
# To use this toolchain from the command line:"
# export TOOLCHAINS=$(whoami)
#
# we build to the same prefix every time (instead of building
# to a versioned prefix) because every time the prefix changes
# *everything* rebuilds.
@3on
3on / anti-virus.sh
Created April 16, 2016 20:05
Clean you mac from MacCleaner/Mackeeper malware in 3 steps.
# 1. List all the daemons running on you mac that are not published by apple.
# Search on google any name that you do not trust.
# MacKeeper has at least one with a strange name.
launchctl list | grep -v com.apple
# 2. Remove all the suspecious daemons.
# You won't be able to simply kill -9, they all restart each other and redownload themselves.
launchctl remove com.malware.something
# 3. Remove all associated files
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
using UnityEngine;
using System.IO;
using System.Collections.Generic;
public class Frame
{
public static int VERSION = 1;
public double Timestamp;
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting