Skip to content

Instantly share code, notes, and snippets.

View rizkysyazuli's full-sized avatar

Rizky Syazuli rizkysyazuli

View GitHub Profile
@rizkysyazuli
rizkysyazuli / idr-check.js
Last active February 21, 2020 05:55
[Bookmarklet - Bitcoin.co.id] Get estimate values of your crypto currency portfolio in Rupiah. Probably no longer works. #bookmarklets
/*
* Author: Rizky Syazuli <br4inwash3r@gmail.com>
* This code snippet is used to show live IDR estimate of your crypto assets in Bitcoin.co.id
* Used as a bookmarklet. Go here to do convert any JS snippets into a bookmarklet: https://bookmarkify.it
*/
if (window.location.href !== 'https://vip.bitcoin.co.id/market') {
alert(`Your're not in VIP spot market page`);
}
@rizkysyazuli
rizkysyazuli / tail-slack.sh
Last active June 21, 2021 07:56
[Shell - Server Log to Slack] Sends server log entries to Slack via webhook #webhook #slack #apache #nginx #shell
#!/bin/bash
tail -n0 -F "$1" | while read LINE; do
(echo "$LINE" | grep -e "$3") && curl -X POST --silent --data-urlencode \
"payload={\"text\": \"$(echo $LINE | sed "s/\"/'/g")\"}" "$2";
done
# to monitor a single session
# ./tail-slack.sh "/var/log/nginx/access-web.log" "https://hooks.slack.com/services/..." " 500 "
#!/usr/bin/env bash
# Originally from: https://bitbucket.org/snippets/rzky/5Kp6k/ruby-gems-installer
# Install Ruby Version Manager (RVM)
# gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
# curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1
# rvm use 2.1 --default
# Essentials
#!/usr/bin/env bash
# Originally from: https://bitbucket.org/snippets/rzky/d6XLo/node-packages-installer
# Install Node Version Manager
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
# Essentials
npm install -g bower
npm install -g grunt-cli
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Originally from: https://bitbucket.org/snippets/rzky/z68ny/brew-packages-installer
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
@rizkysyazuli
rizkysyazuli / mobile-config.js
Created April 25, 2016 16:27
Meteor.js Mobile Config
/* Meteor mobile app configuration file */
/* More info: http://docs.meteor.com/#/full/mobileconfigjs */
/* general app information */
App.info({
id: 'com.mirumagency.appname',
name: 'App Name',
description: 'Your app description',
author: 'Rizky Syazuli',
email: 'rizky.syazuli@mirum-jwt.com',
@rizkysyazuli
rizkysyazuli / .eslintrc
Last active February 20, 2020 15:00
[Dotfiles - Static HTML Dev] Basic Grunt setup & config files #dotfiles #grunt #linter
{
"env": {
"browser": true
},
"extends": "eslint:recommended",
"parser": "esprima",
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
@rizkysyazuli
rizkysyazuli / error-log.txt
Created February 4, 2015 15:06
Meteor iOS Build Error Log
Error while running for mobile platforms: Error running
/Users/rizky/.meteor/packages/meteor-tool/.1.0.40.f2g4aj++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/cordova-scripts/cordova.sh
2015-02-04 22:04:59.668 xcodebuild[33905:490497] error: InputFile
/Users/rizky/Mobile/eat-local/.meteor/local/cordova-build/platforms/ios/Eat
Local/Eat Local-Prefix.pch 0 1422882767 963 33188... malformed line 9;
'InputFile' should have exactly five arguments
** BUILD FAILED **
The following build commands failed:
@rizkysyazuli
rizkysyazuli / SassMeister-input.scss
Created February 3, 2015 06:50
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
@each $color, $hex in (red: #f16158, orange: #faaf40, green: #00a79d, purple: #9e1e62, blue: #1b75bb) {
.theme-#{$color} {
background-color: $hex;
}
}
@rizkysyazuli
rizkysyazuli / platforms
Created February 2, 2015 12:27
Eat Local - Platforms
android
browser
ios
server