Skip to content

Instantly share code, notes, and snippets.

View Deadlyelder's full-sized avatar

Sankalp Deadlyelder

View GitHub Profile
@Deadlyelder
Deadlyelder / keybase.md
Created October 10, 2017 10:53
keybase.md

Keybase proof

I hereby claim:

  • I am deadlyelder on github.
  • I am deadlyelder (https://keybase.io/deadlyelder) on keybase.
  • I have a public key ASCbrTzEiqd4I9nBWVrTB-gXo2engfFtwk9XMpVspvcAjgo

To claim this, I am signing this object:

@Deadlyelder
Deadlyelder / bitcoin_spv_wallet_overview.md
Created October 19, 2017 10:57 — forked from TOMOAKI12345/bitcoin_spv_wallet_overview.md
Bitcoin SPV Wallet Flow Overview

@Deadlyelder
Deadlyelder / .bash_profile
Created October 27, 2017 13:45 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@Deadlyelder
Deadlyelder / camera_fix_macos.sh
Created November 8, 2017 09:12
Script to quickly fix the errors `There is no connected camera`. Run the script as root
#!/bin/bash
# The process VDCAssistant is called whenever
# any application attempts to use the camera.
# In some cases, when the application that was
# using the camera fails to terminate properly,
# this process is still running in background
# preventing other services from access the camera.
# A fix for this is to terminate the process using
# the activity monitor. Or just use the following script.
@Deadlyelder
Deadlyelder / macos_root_pass.sh
Last active November 29, 2017 06:19
Quick and dirty solution for root pass. Credit to original thinker :P
cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 60; echo | xargs -I rootpw sudo dscl . -passwd /Users/root rootpw
@Deadlyelder
Deadlyelder / docker_ip.sh
Created December 8, 2017 08:27
IP docker
ip addr show docker0 | grep -Po 'inet \K[\d.]+'
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
@Deadlyelder
Deadlyelder / tf-env.sh
Last active January 3, 2018 20:53
install tensorflow via virtualenv
#!/bin/bash
TF="tensorflow"
TF_VER="1.4.0"
TF_DIR="$HOME"
ENV_NAME="tf-env"
GREEN="\033[0;32m"
RESET="\033[0m"
@Deadlyelder
Deadlyelder / Info.md
Last active March 25, 2018 12:23
For HPC

OpenCV

$ git clone https://github.com/Itseez/opencv.git
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.usr/local/ .. 
$ make
$ make install

Leveldb

@Deadlyelder
Deadlyelder / prank.sh
Last active April 27, 2018 08:25
prank
#!/bin/bash
GIT=`which git`
CMD="say -r 600 -v Karen meow; $GIT"
echo alias git="\"$CMD\"" >> ~/.bash_profile
echo 'say -v ? | awk '\''{print $1}'\'' | xargs -I {} say -r 700 -v {} meow' >> ~/.bash_profile