Skip to content

Instantly share code, notes, and snippets.

View realityone's full-sized avatar
🍓
☆➰(ゝ。∂)

realityone realityone

🍓
☆➰(ゝ。∂)
View GitHub Profile
@manojkarthick
manojkarthick / steps.md
Created June 22, 2021 07:04
Using vagrant + vmware

To install vagrant with the vmware plugin, follow these steps:

  1. Download [VMware Fusion 12 Player][1] for macOS
  2. Use license key from your myVMware account and install the application
  3. Allow VMware Fusion to control system events within the app when prompted
  4. Enable the accessibility preference at System Preferences > Security & Privacy > Accessibility > VMware Fusion
  5. Install [vagrant][2]: brew tap hashicorp/tap && brew install vagrant
  6. Find the box you want to install from Vagrant [Cloud][3] or my boxes on [Github][4]
  7. Install the [vagrant-vmware-desktop plugin][5]: vagrant plugin install vagrant-vmware-desktop
  8. Install the [VMware utility][6] for vagrant: brew install --cask vagrant-vmware-utility
@Treeki
Treeki / TurnipPrices.cpp
Last active May 27, 2024 15:18
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@linkerlin
linkerlin / mmap_demo.go
Created January 24, 2018 15:45
A demo of mmap for Go
package main
import (
"bytes"
"encoding/binary"
"os"
"sync"
"fmt"
"math/rand"
"path/filepath"
@posener
posener / go-kit.md
Last active February 23, 2024 21:35
Why I Recommend to Avoid Using the go-kit Library

Why I Recommend to Avoid Using the go-kit Library

There is a trending 'microservice' library called go-kit. I've been using the go-kit library for a while now. The library provide a lot of convenience integrations that you might need in your service: with service discovery with Consul, distributed tracing with Zipkin, for example, and nice logic utilities such as round robin client side load balancing, and circuit breaking. It is also providing a way to implement communication layer, with support of RPC and REST.

@japaric
japaric / build.sh
Last active May 12, 2022 14:29
rustc for x86_64-unknown-linux-musl
# Build an statically linked rustc (with host=x86_64-unknown-linux-musl)
# Last tested on: 9316ae515e2f8f3f497fb4f1559910c1eef2433d
# Usage:
# # patches must be in $(pwd)
# $ ls *.patch
# liblibc.patch rust.patch
#
@brennanMKE
brennanMKE / README.md
Last active November 17, 2023 04:36
Key bindings for VS Code to work more like Xcode

The workbench in VS Code on the left has 5 buttons so cmd+1 through cmd+5 will select them.

Running the debugger is started with cmd+r and stopping the debugging is done with cmd+. just like Xcode.

@phoenixlzx
phoenixlzx / nt.md
Last active October 3, 2023 03:38
Project NyaaTracker

NyaaTracker is an open and free bittorrent tracker for everyone.

Usage

Simply add one of the following tracker address to your torrent file and all set:

  • http://t.nyaatracker.com:80/announce
  • udp://t.nyaatracker.com:80/announce

Features