Skip to content

Instantly share code, notes, and snippets.

View jojoe77777's full-sized avatar
🤔

jojoe77777 jojoe77777

🤔
View GitHub Profile
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active December 29, 2024 07:04
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@mbigatti
mbigatti / gist:b7d2e4f374942e8c7589
Created October 5, 2015 07:54
Useful OS X Folders (Mavericks)
Content Folder
Your documents ~/Documents and ~/Desktop
iTunes data and settings ~/Music/iTunes/
iPhoto data and settings ~/Pictures/iPhoto Library/
Movies ~/Movies
Books ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books
Mail data and settings ~/Library/Mail/V2
Contacts data and settings ~/Library/Application Support/AddressBook
Calendar data and settings ~/Library/Calendars/
Safari data and settings ~/Library/Safari/
@shoghicp
shoghicp / commands.md
Last active October 29, 2023 18:16
Some interesting commands to play with the new NBT support for items.

Items with custom name

give sho stick 1 {display:{Name:"§r§6§lNormal stick"}}

Items with enchantments

give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}
@msjyoo
msjyoo / README.md
Created July 24, 2015 12:55
A quick gist because this wasn't documented anywher else. How to render and make sense of the MCPE / PocketMine Skin Data

How to use

Basically, this file will take in a binary file of skin.dat and export 3 files: image.png is the skin file, face.png is the face in original size, faceLarge.png is the face in 512x512.

Only supports 64x64 skins for now. If you want 32x64 make appropriate checks.

The PocketMine's (MCPE's) Skin Data Format is in RGBA format, when represented as hex strings they are a stream of 8 characters. Each two characters represent the R, G, B A, and this continues until you have enough data for either a 32x64 image or a 64x64 image. You can also check whether 32x or 64x with the isSlimSkin() flag on the Player object.

Note that A only has 2 values: 0 and 255. They are inverted in the script because PHP.

@PurpleBooth
PurpleBooth / README-Template.md
Last active May 20, 2025 10:56
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@iksaku
iksaku / VirtualInventories.php
Created June 11, 2015 21:41
Way to open virtual custom inventories in MCPE :D (Work in progress...) Special thanks to @alejandroliu and @PEMapModder for a previous research :3
<?php
/**
* @name VirtualInventories
* @main VirtualInventories\Loader
* @version 1.0.0
* @api 1.12.0
* @description Way to open virtual custom inventories
* @author iksaku
*/
<?php
namespace shoghicp\MinecraftSimulator\task;
use pocketmine\Player;
use pocketmine\scheduler\PluginTask;
use shoghicp\MinecraftSimulator\Loader;
class MarqueeTask extends PluginTask{
@TruDan
TruDan / PC2PE.py
Last active May 28, 2019 18:37
MCEdit Filter to convert PC worlds to PE. Note: This does NOT convert the world to MCRegion format.
displayName = "PC -> PE"
replaceBlocks = {
28: 0,
29: 0,
33: 0,
34: 0,
55: 0,
69: 0,
70: 0,
@shoghicp
shoghicp / 0.9.0_stream.md
Last active March 15, 2017 04:36
Minecraft Pocket Edition 21 million Panel
@shoghicp
shoghicp / MCHead.php
Last active May 6, 2016 06:55
Draw a Canvas of a Minecraft skin, with the hat.
<?php
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.