Skip to content

Instantly share code, notes, and snippets.

@keremtiryaki
keremtiryaki / fix-homebrew-npm.md
Created October 8, 2015 15:44 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g
@keremtiryaki
keremtiryaki / install_jenkins_plugin.sh
Created November 18, 2015 00:29 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@keremtiryaki
keremtiryaki / aws-spot-price-2015-12-09.out
Created December 12, 2015 11:00 — forked from bergerx/ aws-spot-price-2017-05-20.out
aws spot instance cheapest core price finder
ap-southeast-1a d2.8xlarge ecpu:116 vcpu:36 monthly:64.8 max:64.8 price_count:61 --> 0.558620689655$/month/ecpu
ap-southeast-1b d2.8xlarge ecpu:116 vcpu:36 monthly:64.8 max:64.8 price_count:61 --> 0.558620689655$/month/ecpu
eu-central-1b c4.large ecpu:8 vcpu:2 monthly:12.264192 max:12.744 price_count:1000 --> 1.533024$/month/ecpu
eu-central-1a c4.large ecpu:8 vcpu:2 monthly:12.91104 max:14.4 price_count:1000 --> 1.61388$/month/ecpu
us-west-2c c3.large ecpu:7 vcpu:2 monthly:11.6166153846 max:12.024 price_count:117 --> 1.65951648352$/month/ecpu
us-west-2b c3.large ecpu:7 vcpu:2 monthly:11.7594853273 max:12.456 price_count:886 --> 1.67992647533$/month/ecpu
us-west-2a c3.large ecpu:7 vcpu:2 monthly:11.848536 max:12.888 price_count:1000 --> 1.692648$/month/ecpu
us-west-2b c3.xlarge ecpu:14 vcpu:4 monthly:23.814072 max:25.92 price_count:1000 --> 1.70100514286$/month/ecpu
us-west-2b c3.8xlarge ecpu:108 vcpu:32 monthly:186.467976 max:191.16 price_count:1000 --> 1.72655533333$/month/ecpu
us-west-2c c3.xlarge ecpu:14 v
@keremtiryaki
keremtiryaki / Data.json
Last active August 17, 2019 11:01
Security Rules & queries
var a = {
"members" : {
"userId1" : {
"team" : "team1",
"team_id" : "teamId1",
"url" : "https://team1.slack.com/",
"user" : "name1",
"user_id" : "userId1"
},
"userId2" : {
@keremtiryaki
keremtiryaki / howTo.md
Last active March 30, 2016 15:21
how to create a self signed certificate and upload to AWS
/*************************************************
* This is a simple Monte Carlo simulation to see
* whether we should
* go for X BIG deal and/or Y SMALL deals.
*
* What is the best blend?
*
* Author: Ido Green | plus.google.com/+greenido
* Date: 16 July 2013
*
@keremtiryaki
keremtiryaki / keybindings.json
Last active October 22, 2016 13:02
vscode eclipse like keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+h", "command": "workbench.view.search" },
{ "key": "cmd+alt+up", "command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly" },
{ "key": "cmd+alt+down", "command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly" },
{ "key": "cmd+k", "command": "editor.action.nextSelectionMatchFindAction",
@keremtiryaki
keremtiryaki / keyBindings.json
Last active August 7, 2018 14:30
vscode user settings and key bindings
// Place your key bindings in this file to overwrite the defaults
[
// FOLD START
{
"key": "cmd+alt+ctrl+up",
"command": "editor.foldRecursively",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+down",
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
@keremtiryaki
keremtiryaki / gist:86bf5808764cc3800743693fad326de1
Created November 28, 2019 22:12
download chrome without explorer
you may download it via powershell
wget "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -outfile "chrome_installer.exe"