Skip to content

Instantly share code, notes, and snippets.

View eendroroy's full-sized avatar
🐢
May respond with delay!

indrajit eendroroy

🐢
May respond with delay!
View GitHub Profile
#!/usr/bin/env bash
# install rbenv
wget https://raw.githubusercontent.com/eendroroy/loki-bootstrap/master/customs/rbenv.sh -O - | bash
# set paths
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
@eendroroy
eendroroy / wkhtmltox-installer.sh
Last active July 9, 2018 03:25
wkhtmltox installer
#!/usr/bin/env bash
cd /tmp
latest_series=`curl https://downloads.wkhtmltopdf.org/ | grep "^<a" | sed 's|"| |g' | awk '{print $3}' | head -1`
releases=`curl https://downloads.wkhtmltopdf.org/${latest_series} | grep "^<a" | sed 's|"| |g' | awk '{print $3}'`
echo "Available Releases: -"
latest=""
for rel in $releases; do
echo "==> ${rel}" | tr -d "/"

Keybase proof

I hereby claim:

  • I am eendroroy on github.
  • I am eendroroy (https://keybase.io/eendroroy) on keybase.
  • I have a public key ASB-Rwpe8CSZGu5AA6HG439dzZtlQBIX0RgMbfulbyBw_Qo

To claim this, I am signing this object:

---
BUNDLE_PATH: "vendor"
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_BUILD__LIBV8: "--with-system-v8"
BUNDLE_BUILD__PUMA: "--with-opt-dir=/usr/local/opt/openssl"
BUNDLE_BUILD__EVENTMACHINE: "--with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-I/usr/local/opt/openssl/lib"
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
#!/usr/bin/env bash
clear
printf "Checking dependency...\n"
XDOTOOL_INSTALLED=$(dpkg-query -W -f='${Status}' xdotool 2>/dev/null | grep -c "ok installed")
if [ $XDOTOOL_INSTALLED -eq 0 ];
then
printf "\a"
printf "Unmet dependency:\n xdotool"
printf "\nDo you want to install required packages (Y/n)?"
/**
* @author indrajit
*/
class AesCryptoUtil(secret: String) {
private val secretKey: SecretKeySpec
init {
var key: ByteArray = secret.toByteArray(StandardCharsets.UTF_8)
val sha = MessageDigest.getInstance("SHA-1")
key = sha.digest(key)