Skip to content

Instantly share code, notes, and snippets.

@meeech
meeech / field_promotion.go
Created June 18, 2022 04:09
field_promotion.go
package main
import "fmt"
type Original struct {
foo string
bar string
}
func (o *Original) Foo() string {
@meeech
meeech / a_help-osx-borked-my-nix.md
Last active March 14, 2024 16:32
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.

Apple Borked my Nix!

Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.

Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.

Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4

Useful Links

@meeech
meeech / hello-world.lua
Last active November 24, 2021 02:02
Just some notes during my first poke-through
Config = {
Map = "aduermael.hills"
}
Client.OnStart = function()
-- Defines a function to drop
-- the player above the map.
dropPlayer = function()
@meeech
meeech / cachemodule.ts
Created August 31, 2021 15:17
Register dynamic module with some error handling nestjs
@Module({
imports: [
CacheModule.registerAsync({
imports: [ConfigModule],
useFactory: async (
cConfig: ConfigType<typeof cacheConfig>,
rConfig: ConfigType<typeof redisConfig>,
) => {
Logger.log(`*** Cache is disabled: ${cConfig.disabled}`);
class Octave < Formula
desc "a high-level interpreted language for numerical computations."
homepage "https://www.gnu.org/software/octave/index.html"
url "http://ftpmirror.gnu.org/octave/octave-3.8.2.tar.bz2"
mirror "https://ftp.gnu.org/gnu/octave/octave-3.8.2.tar.bz2"
sha256 "83bbd701aab04e7e57d0d5b8373dd54719bebb64ce0a850e69bf3d7454f33bae"
head "http://www.octave.org/hg/octave", :branch => "default", :using => :hg
revision 2
bottle do

Keybase proof

I hereby claim:

  • I am meeech on github.
  • I am meeech (https://keybase.io/meeech) on keybase.
  • I have a public key ASCr8_vHLXQvMMxRT331FXMb2EQ3dslpzY1LU3-b-3fr7wo

To claim this, I am signing this object:

@meeech
meeech / 0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
Created October 16, 2017 15:01
0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
var mapping;
var oids = { foo: { x: 'bar' } };
_.each(oids, function (row, index) {
// driver.log.fatal(row.entPhysicalClass, this.snmp.get(row.entPhysicalClass));
mapping[index] = {
name: row.x
};
}, this);
local kernel = {
category = "generator",
name = "stars",
isTimeDependent = false
}
kernel.vertexData = {
{
name = 'resolutionX',
default = display.pixelWidth,
@meeech
meeech / gist:8188f9f7722a413ed65e
Created October 12, 2015 19:31
jsbeautify everything in a folder
ls -LR Scripts/**/**/*.js | xargs -L1 js-beautify -r