This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test | |
| print "Test" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function postPixel(timeout) { | |
| setTimeout(function() { | |
| $.getJSON('https://www.reddit.com/api/me.json', function(response){ | |
| var modhash = response.data.modhash; | |
| $.ajax({ | |
| url: "https://www.reddit.com/api/place/draw.json", | |
| type: 'post', | |
| data: { | |
| x: 634, | |
| y: 354, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f = File.open("nuevos_campos.txt") | |
| f.each_line do |line| | |
| unless line == "\n" | |
| text = line.chomp.split(",") | |
| field_name = text[1].downcase.gsub(" ","_") | |
| case text[2] | |
| when "Select" | |
| field_type = "numeric" | |
| field_test = "`1`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* THIS IS ONLY A PROOF OF CONCEPT PLEASE DON'T USE IT FOR EVIL, | |
| I'M NOT RESPONSIBLE FOR YOUR ACTIONS, THIS IS ONLY FOR EDUCATION | |
| PURPOSES ONLY!!!!*/ | |
| .usertext-buttons button { | |
| font-size: 0px; | |
| right: 0px; | |
| top: 33px; | |
| width: 44px; | |
| position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Gets the first 10 results of the query without using google API | |
| # And then prints them as a JSON | |
| # Usage google.rb [your search] | |
| require "net/https" | |
| require "uri" | |
| require "nokogiri" | |
| require "json" | |
| q = URI::encode(ARGV[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For AXTEL-XXXX Routers (and probably others from ZHONE) | |
| # By Mackaber | |
| # USE $ruby axtellistgen.rb "XXXX" | |
| def makelist(suffix) | |
| keys = [] | |
| for i in 0..255 do | |
| for j in 0..255 do | |
| keys.push("#{i.to_s(16).upcase.rjust(2,"0")}#{j.to_s(16).upcase.rjust(2,"0")}#{suffix}") | |
| end |
NewerOlder