Skip to content

Instantly share code, notes, and snippets.

@shasderias
shasderias / errorperf.go
Last active December 14, 2022 22:39
Go Error Checking Performance
package errorperf
import (
"errors"
"fmt"
"math/rand"
"os"
"strconv"
)
# Maintainer:
pkgname=doppler
pkgver=3.23.1
pkgrel=1
epoch=
pkgdesc="CLI for Doppler, a universal secrets manager"
arch=(
"x86_64"
"i686"
"armv6h"
@shasderias
shasderias / controller.go
Created May 19, 2019 16:46
external-dns controller/controller.go
/*
Copyright 2017 The Kubernetes Authors.
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

Keybase proof

I hereby claim:

  • I am shasderias on github.
  • I am shasderias (https://keybase.io/shasderias) on keybase.
  • I have a public key ASAwApuKUQn_wTuNZcGXNovj_AmtnLvLT6_1W7EGztqRvQo

To claim this, I am signing this object:

package net.gotev.uploadservicedemo.utils;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
%\setuppapersize [A4,landscape]
%\setupbodyfont [sans, 10pt]
%\setuplayout [location=singlesided, width=middle, backspace=2.5cm, header=4.7cm]
\startsetups[header]
\startxtable
\startxrow
\startxcell Header \stopxcell
\stopxrow
\stopxtable
F8::PrintScreen
F9::Home
F10::End
F11::PgUp
F12::PgDn
PrintScreen::F8
Home::F9
End::F10
PgUp::F11