Skip to content

Instantly share code, notes, and snippets.

View malditojavi's full-sized avatar

Javier Sanz malditojavi

View GitHub Profile
<body>
<h1 i>Lenovo Desktop Computer</h1>
<div >We do price match! Contact us to get a better deal</div>
</body>
@malditojavi
malditojavi / hackpricematch.html
Created September 10, 2017 19:01
Hack Price Match
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hack Get More Sales</title>
</head>
<body>
<h1>Lenovo Desktop Computer</h1>
</body>
</html>
@malditojavi
malditojavi / initial.html
Last active September 10, 2017 18:59
Block Scroll Hack - initial HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hack Block Scroll</title>
<link href="css/main.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
@malditojavi
malditojavi / test.txt
Created July 8, 2016 06:06
%FIRSTNAME|UPPERFIRST%
%FIRSTNAME|UPPERFIRST%
@malditojavi
malditojavi / filmin.rb
Last active January 14, 2016 21:09
Final page Filmin
require 'rubygems'
require 'watir-webdriver'
begin
# Specify the driver path
chromedriver_path = File.join(File.absolute_path('/Users/malditojavi/', File.dirname(__FILE__)),"downloads","chromedriver")
Selenium::WebDriver::Chrome.driver_path = chromedriver_path
# Start the browser as normal
browser = Watir::Browser.new :chrome
@malditojavi
malditojavi / mobilevikingsinvoices.rb
Last active December 23, 2015 19:17
Download the latest invoices from Mobile Vikings
require 'rubygems'
require 'watir-webdriver'
require 'watir-webdriver'
# Specify the driver path
chromedriver_path = File.join(File.absolute_path('set/your/path', File.dirname(__FILE__)),"downloads","chromedriver")
Selenium::WebDriver::Chrome.driver_path = chromedriver_path
# Start the browser as normal
before_create do
self.invite_key ||= SecureRandom.hex
end
t.string :invite_key, null: false, limit: 32
t.string :email, null: false
t.integer :invited_by_id, null: false
# If they were invited to a topic
if first_topic.present?
build_email(invite.email,
template: 'invite_mailer',
invitee_name: invite.invited_by.username,
invite_link: "#{Discourse.base_url}/invites/#{invite.invite_key}",
topic_title: first_topic.try(:title))
else
build_email(invite.email,
template: 'invite_forum_mailer',