---
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)?" |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |