Skip to content

Instantly share code, notes, and snippets.

View systemhalted's full-sized avatar
💭
I am just a DOS error!

Palak Mathur systemhalted

💭
I am just a DOS error!
View GitHub Profile
@systemhalted
systemhalted / Makefile
Last active October 20, 2020 04:03
CS6340 Lab 3 Test script
.PRECIOUS: %.ll
TARGETS=simple0.log simple1.log branch0.log loop0.log branch1.log branch2.log loop1.log cast0.log cast1.log
all: ${TARGETS}
%.ll: %.c
clang -emit-llvm -S -fno-discard-value-names -c -o $@ $<
%.log: %.ll
@systemhalted
systemhalted / keybase.md
Created July 27, 2020 13:10
Keybase proof

Keybase proof

I hereby claim:

  • I am systemhalted on github.
  • I am palakmathur (https://keybase.io/palakmathur) on keybase.
  • I have a public key ASAlyDd40zsg963cDx5zJL-xzYMhvoadRoL10SXdxLyUxAo

To claim this, I am signing this object:

@systemhalted
systemhalted / tmux.cheat
Created June 19, 2019 15:06 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@systemhalted
systemhalted / gist:b752321e99cc6b3c20181758917e7c50
Created January 22, 2019 20:26 — forked from rednaxelafx/gist:925323
Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

build date Sun/Oracle JDK Version OpenJDK Version HotSpot VM Version
2006-11-29 1.6.0-b105 1.6.0-b105
2007-03-14 1.6.0_01-b06 1.6.0_01-b06
2007-06-22 1.6.0_02-b05 1.6.0_02-b05
2007-09-24 1.6.0_03-b05 1.6.0_03-b05
2007-12-14 1.6.0_04-b12 10.0-b19
@systemhalted
systemhalted / scala.rb
Created June 21, 2018 03:00 — forked from fabiofumarola/scala.rb
Install Scala 2.10 RC3 on OSX
# to install the latest stable version:
brew install scala --with-docs
# to install scala-2.10.0-RC3:
brew install https://raw.github.com/gist/4118557/scala.rb --with-docs
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch scala 2.9.2
brew switch scala 2.10.0-RC3
You’re running the REPL with outdated classes: Build module 'HelloKotlin' and restart
Welcome to Kotlin version 1.2.10 (JRE 1.8.0_171-b11)
Type :help for help, :quit for quit
fun whatShouldIDoToday(
mood: String,
weather: String = "sunny",
temperature: Int = 24): String {
val array = Array(5) {it * 2}
println(array.asList())
[0, 2, 4, 6, 8]
import kotlin.math.pow
val array = Array(7) { 1000.0.pow(it)}
val sizes = arrayOf("byte", "kilobyte", "megabyte", "gigabyte",
var rainbowColor : String = "Blue"
rainbowColor = "Violet"
rainbowColor
Violet
val blackColor : String = "Black"
blackColor

Keybase proof

I hereby claim:

  • I am palakmathur on github.
  • I am palakmathur (https://keybase.io/palakmathur) on keybase.
  • I have a public key whose fingerprint is D96D 488E 0DE1 4E80 D70D 0C63 A53E CE9E 59C1 F992

To claim this, I am signing this object:

@systemhalted
systemhalted / gist:8b87ca3853b4492380e0
Last active March 9, 2016 22:32 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*