Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
public static class PivotUtilities
{
[MenuItem("GameObject/Pivot/Create Pivot", false, 0)]
static void CreatePivotObject()
{
@malaymanna0
malaymanna0 / peter-thiels-cs183-startup-class-01-notes-essay.md
Created December 20, 2025 20:12 — forked from harperreed/peter-thiels-cs183-startup-class-01-notes-essay.md
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

@harperreed
harperreed / peter-thiels-cs183-startup-class-01-notes-essay.md
Created July 29, 2012 21:20
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

@joepie91
joepie91 / vpn.md
Last active December 20, 2025 20:11
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@eylenburg
eylenburg / msoffice_in_linux.md
Last active December 20, 2025 20:10
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.
@remimikalsen
remimikalsen / updatecloudflare.sh
Last active December 20, 2025 20:09
Update your Public IP on your cloudflare domains automatically
#/bin/bash
# https://theawesomegarage.com/blog/godaddy-terminated-my-free-dns-management-api-now-what
# This script will retrieve your Public IP, and if the service IP is different from last time
# the script will attempt to call Cloudflare's specific API endpoint for DNS updates.
# I suggest calling the script from crontab like this, for example every minute:
# */1 * * * * /mnt/web/scripts/updatecloudflare.sh /mnt/web/scripts/theawesomegarage.org.cfg >> /var/log/dns-updates.log
# You will have to give a .cfg-file for each domain you want to update, formatted like this (without the comments, obviously):
@ascopes
ascopes / http_server.sh
Last active December 20, 2025 20:04
Bash HTTP Server (using socat)
#!/usr/bin/env bash
set -o errexit
set -o nounset
function server() {
echo "Starting TCP server at http://localhost:8000..."
socat TCP-LISTEN:8000,pktinfo,reuseaddr,fork SYSTEM:"'${SHELL}' '${BASH_SOURCE[0]}' request"
}
function request() {
@fnky
fnky / ANSI.md
Last active December 20, 2025 20:02
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@chrisidakwo
chrisidakwo / nigerian-states.json
Last active December 20, 2025 20:01
All 36 states in Nigeria, and their local government areas - including the Federal Capital Territory and its area councils
{
"Abia": [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala-Ngwa North",
"Isiala-Ngwa South",
"Isuikwato",
@jackblk
jackblk / squid_proxy_tutorial.md
Last active December 20, 2025 20:00
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils