Skip to content

Instantly share code, notes, and snippets.

// source: https://play.golang.org/p/mJPMN1_KSv
// so: https://stackoverflow.com/questions/23003793/convert-arbitrary-golang-interface-to-byte-array
package main
import (
"bytes"
"encoding/gob"
"fmt"
)
Operation List with file attempt 1 of 5 failed with message: Out of memory
System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) System.String:FastAllocateString (int)
at System.Text.StringBuilder.ToString () [0x00017] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.IO.StringWriter.ToString () [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at Newtonsoft.Json.Linq.JToken.ToString (Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonConverter[] converters) [0x00021] in <dc86da7fc46c487ba6c7ab826da479cc>:0
at Newtonsoft.Json.Linq.JToken.ToString () [0x00000] in <dc86da7fc46c487ba6c7ab826da479cc>:0
at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse] (CG.Web.MegaApiClient.Serialization.RequestBase request, System.Byte[] key) [0x00155] in <3017f9a0f3bf40f38f48ff00c7cc1c96>:0
at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse] (CG.Web.MegaApiClient.Serialization.RequestBase request, System.Byte[] key) [0x00024] in <3017f9a0f3bf40f38f48ff00c7cc1c96>:0
@zer09
zer09 / pldt-home-fibr-an5506-04-fa-rp2616-advanced-settings.md
Created March 5, 2018 03:25 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

By default the PLDT HOME FIBR AN5506-04-FA RP2616 comes only with limited settings.

Hidden from the web interface are the rest of the router's capabilities and advanced settings.

We just need to enter the right url for the settings you're looking for.

We need to be logged in before we can do anything else, use your defined password if you already set the admin password.

@zer09
zer09 / comma-first-var.js
Created December 28, 2017 05:43 — forked from isaacs/comma-first-var.js
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
@zer09
zer09 / .jsbeautifyrc
Created December 28, 2017 04:50 — forked from wzup/.jsbeautifyrc
.jsbeautifyrc file example
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],
@zer09
zer09 / .tern-project
Created December 22, 2017 06:16 — forked from nisaacson/.tern-project
Use tern with vim for node.js development.
{
"libs": [
"browser",
"underscore",
"jquery"
],
"plugins": {
"node": {}
}
}
@zer09
zer09 / clean-scrollbar.css
Created October 20, 2017 14:14 — forked from devinrhode2/clean-scrollbar.css
Like, basically PERFECT scrollbars
/**
* Like, basically PERFECT scrollbars
*/
/*
It's pure CSS.
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars...
this has no fade-out effect.
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting.
@zer09
zer09 / graceful.go
Created July 4, 2017 01:39 — forked from peterhellberg/graceful.go
*http.Server in Go 1.8 supports graceful shutdown. This is a small example.
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
"time"
)
@zer09
zer09 / main.go
Created May 2, 2017 06:26
cobra test
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,