Skip to content

Instantly share code, notes, and snippets.

View surjikal's full-sized avatar
👁️‍🗨️

Nick Porter surjikal

👁️‍🗨️
  • CTO @ 42
  • Oakland
View GitHub Profile
@surjikal
surjikal / aws-xray-on-eks-fargate.md
Last active December 2, 2021 17:25
AWS X-Ray on EKS Fargate

This helm chart can be used to deploy a standalone daemon for AWS X-Ray on EKS Fargate.

  • You'll need to create a service account called aws-xray.
  • This IAM role works well: arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess
  • You will have to update the value for eks.amazonaws.com/role-arn.

Once this is deployed, you can set the AWS_XRAY_DAEMON_ADDRESS to aws-xray:2000 in your other pods.

{
"type": "shell",
"label": "python: futurize current file (dry run, vscode diff)",
"group": "build",
"command": "pipenv",
"args": [
"run",
"env",
"TMPDIR=$(mktemp -d)",
"futurize",

Keybase proof

I hereby claim:

  • I am surjikal on github.
  • I am nickporter (https://keybase.io/nickporter) on keybase.
  • I have a public key whose fingerprint is C11F F917 2A56 60DC B631 89E3 4A5D DA1B 4DC6 6C1B

To claim this, I am signing this object:

@surjikal
surjikal / osx-init.sh
Created September 23, 2019 19:06
OSX INIT
# Bottom bar settings
defaults write com.apple.dock autohide-delay -int 0
defaults write com.apple.dock autohide-time-modifier -float 0.4
killall Dock
@surjikal
surjikal / copy_database.sql
Created August 21, 2019 01:27
[Copy database SAP Hana] SQL command to create a copy database in SAP Hana #Hana
-- Default B1_SHF folder: /usr/sap/SAPBusinessOne/B1_SHF
-- Create a new backup
EXPORT "SBODEMOIE"."*" AS BINARY INTO '/usr/sap/NDB/HDB00/backup/data' WITH REPLACE THREADS 10;
-- Duplicate a database (but you need to create a backup before)
import "SBODEMOIE"."*" as binary from '/usr/sap/NDB/HDB00/backup/data' with ignore existing threads 10 rename schema "SBODEMOIE" to "DEMODB_1";
@surjikal
surjikal / index.html
Last active May 4, 2019 20:49 — forked from phil-pedruco/index.html
Plotting a bell (Gaussian) curve in d3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Normal Plot</title>
<meta name="description" content="">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
@surjikal
surjikal / index.html
Last active May 4, 2019 20:32 — forked from sirrobert/index.html
Smoothly streaming line graph
<!DOCTYPE html>
<html>
<head>
<title>Line Chart</title>
<link type="text/css" rel="stylesheet" href="line.css"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<script type="text/javascript" src="line.js"></script>
</body>
// Shadertoy Kaleidoscope Shade
// Usage: Pick a texture in channel0
//
// Hacked together using code from:
// https://graphicdesign.stackexchange.com/questions/88165/program-for-image-kaleidoscope-mirror-effect-similar-to-adobe-capture-pattern-tr
precision mediump float;
const float PI = 3.14159265359;
const int numberOfAxis = 6;
@surjikal
surjikal / gentoo-iota-node-install.md
Last active September 24, 2017 20:57
Gentoo IOTA Node Install

Gentoo IOTA Node Installation

These steps were run on a clean Gentoo image on Linode

Update the system

# Update package repo
emaint -a sync
@surjikal
surjikal / post-install.sh
Last active May 7, 2017 02:49
Vertica Ubuntu 14.04 Notes
su dbadmin
admintools -t create_db -d <dbname> --hosts localhost
admintools -t start_db -d <dbname>
vsql -h 127.0.0.1 -d <dbname> -U dbadmin