Skip to content

Instantly share code, notes, and snippets.


Nick Porter surjikal

View GitHub Profile

Keybase proof

I hereby claim:

  • I am surjikal on github.
  • I am 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:

# Bottom bar settings
defaults write autohide-delay -int 0
defaults write autohide-time-modifier -float 0.4
killall Dock
surjikal / copy_database.sql
Created Aug 21, 2019 — forked from bagundes/copy_database.sql
[Copy database SAP Hana] SQL command to create a copy database in SAP Hana #Hana
View copy_database.sql
-- Default B1_SHF folder: /usr/sap/SAPBusinessOne/B1_SHF
-- Create a new backup
-- 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 / index.html
Last active May 4, 2019 — forked from phil-pedruco/index.html
Plotting a bell (Gaussian) curve in d3
View index.html
<!DOCTYPE html>
<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="" charset="utf-8"></script>
<style type="text/css">
surjikal / index.html
Last active May 4, 2019 — forked from sirrobert/index.html
Smoothly streaming line graph
View index.html
<!DOCTYPE html>
<title>Line Chart</title>
<link type="text/css" rel="stylesheet" href="line.css"/>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="line.js"></script>
View kaleidoscope.frag
// Shadertoy Kaleidoscope Shade
// Usage: Pick a texture in channel0
// Hacked together using code from:
precision mediump float;
const float PI = 3.14159265359;
const int numberOfAxis = 6;
surjikal /
Last active Sep 24, 2017
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 /
Last active May 7, 2017
Vertica Ubuntu 14.04 Notes
su dbadmin
admintools -t create_db -d <dbname> --hosts localhost
admintools -t start_db -d <dbname>
vsql -h -d <dbname> -U dbadmin
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b()}(this,function(){return function a(b,c,d){function q(a){var b=a.split(/[:;,]/),c=b[1],d="base64"==b[2]?atob:decodeURIComponent,e=d(b.pop()),f=e.length,g=0,h=new Uint8Array(f);for(g;g<f;++g)h[g]=e.charCodeAt(g);return new l([h],{type:c})}function r(a,b){if("download"in j)return j.href=a,j.setAttribute("download",m),j.className="download-js-link",j.innerHTML="downloading...","none",document.body.appendChild(j),setTimeout(function(){,document.body.removeChild(j),b===!0&&setTimeout(function(){e.URL.revokeObjectURL(j.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return a=a.replace(/^data:([\w\/\-\+]+)/,f),||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=a),!0;var c=document.createElement("iframe");document.body.appe
surjikal /
Created Sep 9, 2016 — forked from Tristor/tweaks
OSX Dev Tweaks
#!/usr/bin/env bash
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Disable transparency in the menu bar and elsewhere on Yosemite
defaults write reduceTransparency -bool true
# Menu bar: hide the Time Machine, Volume, and User icons
for domain in ~/Library/Preferences/ByHost/*; do
defaults write "${domain}" dontAutoLoad -array \
"/System/Library/CoreServices/Menu Extras/" \
"/System/Library/CoreServices/Menu Extras/" \
You can’t perform that action at this time.