Skip to content

Instantly share code, notes, and snippets.

View LoranKloeze's full-sized avatar

Loran Kloeze LoranKloeze

View GitHub Profile
@LoranKloeze
LoranKloeze / code.rb
Last active June 8, 2022 06:56
Code block 1
def my_method(number: 200)
do_this
do_that
fix_this
send_results
end
@LoranKloeze
LoranKloeze / scroll_instagram.js
Created May 31, 2017 20:13
Automatic scroll of Instagram page, stop scrolling by hand...
/*
Tired of scrolling to one of the last photos on the page on Instagram? Let your
browser do the scrolling for you!
31-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
Usage
- Go to https://www.instagram.com/instagram_handle/ (change instagram_handle in i.e. taylorswift)
- Open up the console (F12) (Firefox users: type 'allow pasting' if you haven't done so yet)
- Select the contents of this complete file and copy/paste it to the console and hit enter
@LoranKloeze
LoranKloeze / petya_count.rb
Last active October 31, 2023 19:45
Script that fetches and tweets the current balance of #petya ransomware bitcoin wallet
# Copyright Loran Kloeze
# License: MIT
# 27-06-2017
require 'nokogiri'
require 'open-uri'
require 'twitter'
require 'json'
while true do
btc = JSON.parse(open("http://api2.coindesk.com/headerchart/history?currency=BTC").read)