Skip to content

Instantly share code, notes, and snippets.

Nick Porter surjikal

Block or report user

Report or block surjikal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View osx-init.sh
# 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 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
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 — forked from phil-pedruco/index.html
Plotting a bell (Gaussian) curve in d3
View index.html
<!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 — forked from sirrobert/index.html
Smoothly streaming line graph
View index.html
<!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>
View kaleidoscope.frag
// 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 Sep 24, 2017
Gentoo IOTA Node Install
View gentoo-iota-node-install.md

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
Vertica Ubuntu 14.04 Notes
View post-install.sh
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
View place.md
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.download=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...",j.style.display="none",document.body.appendChild(j),setTimeout(function(){j.click(),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),window.open(a)||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
surjikal / tweaks-commented.sh
Created Sep 9, 2016 — forked from Tristor/tweaks
OSX Dev Tweaks
View tweaks-commented.sh
#!/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 com.apple.universalaccess reduceTransparency -bool true
# Menu bar: hide the Time Machine, Volume, and User icons
for domain in ~/Library/Preferences/ByHost/com.apple.systemuiserver.*; do
defaults write "${domain}" dontAutoLoad -array \
"/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu" \
You can’t perform that action at this time.