Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathan Pierce NorseGaud

View GitHub Profile
@NorseGaud
NorseGaud / nlimit.plist
Created Jun 15, 2021
/Library/LaunchDaemons/nlimit.plist
View nlimit.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>nlimit</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
@NorseGaud
NorseGaud / anka-controller.yml
Created Jan 5, 2021
Kubernetes anka-controller example
View anka-controller.yml
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
version: v1.13.0
labels:
app: anka-controller
release: anka-controller
name: anka-controller
@NorseGaud
NorseGaud / golang-mailchimp-api-calls-with-offset-loop.md
Last active Mar 12, 2020
Golang: Mailchimp API calls with gochimp3 and an offset loop
View golang-mailchimp-api-calls-with-offset-loop.md

Problem: Mailchimp limits you to 1000 entrys at a time, but provides an offset to get the rest.

Solution: In a loop, handle changing the offset so we can collect everything into an array and get the details we need.

  • Requires gochimp3
fmt.Println("[Pulling Data From Mailchimp]")
mailchimpListTotalItems, err := mailchimpConnection.NewListResponse("XXXXXXXX").GetMembers(
	&gochimp3.InterestCategoriesQueryParams{
@NorseGaud
NorseGaud / gist:2af685d05436abc1eeeaf7ea4f23e14f
Created Mar 3, 2019
nodeos_under_min_avail_ram_lr_test failure
View gist:2af685d05436abc1eeeaf7ea4f23e14f
This file has been truncated, but you can view the full file.
Test project /Users/norsegaud/eos/build
Start 66: nodeos_under_min_avail_ram_lr_test
1/1 Test #66: nodeos_under_min_avail_ram_lr_test ...***Failed 181.82 sec
kill: 84963: No such process
kill: 84964: No such process
kill: 84965: No such process
kill: 84966: No such process
kill: 84967: No such process
launching bios