Skip to content

Instantly share code, notes, and snippets.

View pellet's full-sized avatar
🤡
Yay computers

Ben Pettit pellet

🤡
Yay computers
View GitHub Profile
@tomdaley92
tomdaley92 / README.md
Last active November 19, 2024 12:21
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@jevakallio
jevakallio / readme.md
Last active November 1, 2024 00:01
`adb pull` from app data directory without root access

TL;DR;

com.package.name is your app identifier, and the file path is relative to the app user's home directory, e.g. '/data/user/0/com.package.name.

adb shell run-as com.package.name cp relative/path/file.ext /sdcard
adb pull /sdcard/file.ext

See long explanation below.

@vaughandroid
vaughandroid / kill-emulator.exp
Created May 25, 2016 09:35
Script to kill an Android emulator which requires authentication
#!/usr/bin/expect
##############################################################
#
# KILL-EMULATOR
#
# Kills an Android emulator which requires authentication.
# It works by opening a telnet session and authenticates, before issuing the
# kill command.
#
@trinnguyen
trinnguyen / Extensions.cs
Last active April 5, 2024 16:14
Xamarin.iOS convert between NSDate and DateTime , default LocalTime
using Foundation;
using System;
using System.Collections.Generic;
using System.Text;
namespace UICode.iOS
{
public static class Extensions
{
public static NSDate DateTimeToNSDate(this DateTime date)