Skip to content

Instantly share code, notes, and snippets.

View kofronpi's full-sized avatar

Pierre-Alexandre Kofron kofronpi

View GitHub Profile
@kofronpi
kofronpi / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 11:53
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - [email protected]
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
@kofronpi
kofronpi / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 11:53
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - [email protected]
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
# Copy and paste this to the rails console to test your email settings
class MyMailer < ActionMailer::Base
def test_email
@recipients = "[email protected]"
@from = "[email protected]"
@subject = "test from the Rails Console"
@body = "This is a test email"
end
end
@kofronpi
kofronpi / circle.yml
Created May 25, 2016 22:56 — forked from jonah-williams/circle.yml
Automating deployments to Heroku from CircleCI
test:
override:
- bundle exec rspec spec
deployment:
acceptance:
branch: master
commands:
- ./script/heroku_deploy.sh <ACCEPTANCE_HEROKU_APP>:
timeout: 300
@kofronpi
kofronpi / db.rake
Last active August 28, 2017 09:32 — forked from hopsoft/db.rake
Rails rake tasks for dump & restore of PostgreSQL databases
namespace :db do
DUMP_FMT = 'p' # 'c', 'p', 't', 'd'
desc 'Dumps the database to backups'
task sql_dump: :environment do
dump_sfx = suffix_for_format(DUMP_FMT)
backup_dir = backup_directory(true)
cmd = nil
with_config do |app, host, db, user|
file_name = Time.now.strftime("%Y%m%d%H%M%S") + "_" + db + '.' + dump_sfx
@kofronpi
kofronpi / get-all-markers-on-map-get-all-polygons-on-map-find-which-markers-are-within-a-polygon.js Example of one way to integrate Leafletjs w/ Leaflet.draw extending it to add methods to: - Load markers from KML and overlay onto map. - Return array of all markers on a map. - Return array of all polygons on a map. - Return array of markers which are within a specified polygon. Requires UnderscoreJS and @shramov/leaflet-plugins (for KML loader…
// <summary>
// Logging methods.
// </summary>
Log = {
Dump: function (object)
{
if (object)
{
console.debug(object);
}
@kofronpi
kofronpi / Makefile
Created January 13, 2014 19:20 — forked from anonymous/Makefile
HEDGE = node riphedge
all:
npm install ripple-lib
hedge:
-while date; do \
$(HEDGE); \
sleep 100; \
done