Skip to content

Instantly share code, notes, and snippets.

olore / ruby_pwned.rb
Created Mar 11, 2019
Have I Been Pwned, ruby style
View ruby_pwned.rb
#!/usr/bin/env ruby
require 'net/http'
require 'digest'
url = ''
input = ARGV[0] ? ARGV :
input.each do |pw|
olore / cloudSettings
Created Sep 14, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
olore / webpack.config.js
Last active Aug 22, 2019
webpack step 1 - refactor
View webpack.config.js
var webpack = require('webpack');
var StringReplacePlugin = require("string-replace-webpack-plugin");
module.exports = {
output: {
filename: 'build/static/app/[name]'
entry: {
View gist:94f3eb7233eb32184011
if (Math.floor(moment.duration(expectedLogoutTime - +(new Date())).asSeconds()) <= 0) {'timeout service - openDialog called but past logout time');
return $q.reject();
View gist:98e8f19db2936a5a92e1
if (dateHasPassed(expectedLogoutDate)) {'timeout service - openDialog called but past logout time');
return $q.reject();
function dateHasPassed(date) {
return moment().isAfter(moment(date));
View .vimrc
"Suppress persistent highlighting of searched terms"
set nohlsearch
set nocompatible
set backspace=indent,eol,start
set ruler
let mapleader = ","
set tabstop=2 shiftwidth=2 expandtab
olore / alls_you_gotta_do
Last active Dec 18, 2015
AngularJS 1.1.x + Cordova
View alls_you_gotta_do
# This is how I got AngularJS 1.1.x and Cordova working together
sudo npm install -g grunt cordova
cordova create angular-app
cd angular-app
cordova platform add android # create android files
cordova ripple android # see the hello world phonegap application
olore / gist:5731268
Created Jun 7, 2013
trying to do string concatenation with UTF-8 (arabic in this case) characters
View gist:5731268
# encoding: utf-8
# See
arabic = "أَبْجَدِيَّة عَ"
puts "A #{arabic} end " + " Goodbye " #This is OK because it starts with A
puts "#{arabic} end " + " Goodbye " #" end" is displayed first :(
olore / config.yml
Created Sep 8, 2011
Find the price of the cheapest room at a "Value Resort" in Disney World
View config.yml
#Specify a "Value" resort to get prices for, or "any" to find the cheapest
resort: Pop Century
#resort: any
#Specify dates to search for. Format: MM/DD/YYYY
- arrival: 11/29/2011
departure: 12/03/2011
- arrival: 11/30/2011
olore / client.html
Created Jul 26, 2011
node client/server using
View client.html
<div id="status"></div>
<br /> <br /> <br />
<div id="msg"></div>
<script src="http://localhost:4444/"></script>
var socket = io.connect('http://localhost:4444');