Skip to content

Instantly share code, notes, and snippets.

View 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 Aug 14, 2022
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.
View a_help-osx-borked-my-nix.md

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 Nov 24, 2021
Just some notes during my first poke-through
View hello-world.lua
Config = {
Map = "aduermael.hills"
}
Client.OnStart = function()
-- Defines a function to drop
-- the player above the map.
dropPlayer = function()
@meeech
meeech / cachemodule.ts
Created Aug 31, 2021
Register dynamic module with some error handling nestjs
View cachemodule.ts
@Module({
imports: [
CacheModule.registerAsync({
imports: [ConfigModule],
useFactory: async (
cConfig: ConfigType<typeof cacheConfig>,
rConfig: ConfigType<typeof redisConfig>,
) => {
Logger.log(`*** Cache is disabled: ${cConfig.disabled}`);
View octave3_8.rb
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
View keybase.md

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 Oct 16, 2017
0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
View 0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
0x5cC082E697DE3AaB223e1eA58dA479D2e4C2B701
View generated_es5.js
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);
View starfield-shader.lua
local kernel = {
category = "generator",
name = "stars",
isTimeDependent = false
}
kernel.vertexData = {
{
name = 'resolutionX',
default = display.pixelWidth,
View starfield_effect.lua
local function makeGenerator()
local kernel = {
category = "generator",
name = "stars",
isTimeDependent = false
}
kernel.vertexData = {
{