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: Rizky Syazuli <[email protected]> | |
* 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`); | |
} |
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
#!/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 " |
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 | |
# 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 |
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 | |
# 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 |
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 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 |
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
/* 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: '[email protected]', |
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
{ | |
"env": { | |
"browser": true | |
}, | |
"extends": "eslint:recommended", | |
"parser": "esprima", | |
"parserOptions": { | |
"ecmaVersion": 5, | |
"sourceType": "script" | |
}, |
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
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: |
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
// ---- | |
// libsass (v3.1.0-beta) | |
// ---- | |
@each $color, $hex in (red: #f16158, orange: #faaf40, green: #00a79d, purple: #9e1e62, blue: #1b75bb) { | |
.theme-#{$color} { | |
background-color: $hex; | |
} | |
} |
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
android | |
browser | |
ios | |
server |