Skip to content

Instantly share code, notes, and snippets.

View Mackaber's full-sized avatar
🚂
I like trains

Mackaber (Miguel Bravo) Mackaber

🚂
I like trains
View GitHub Profile
@Mackaber
Mackaber / quake.xml
Last active June 18, 2024 16:55
quake.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2024-06-18 10:49:42" build="230724">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
AAHED
AALII
AALST
AALTO
AAMSI
AAPSS
AARAU
AAREN
AARGH
AARON
@Mackaber
Mackaber / fyfacebook.js
Last active March 17, 2019 16:18
Facebook Block Infinitescroll
// ==UserScript==
// @name Facebook Block Infinitescroll
// @namespace https://mackaber.me/
// @version 0.1
// @description Blocks Facebook to infinite scroll
// @author Mackaber
// @match https://m.facebook.com/
// @grant none
// ==/UserScript==
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mackaber
Mackaber / mexico_interest_dataset.json
Created September 5, 2018 22:49
Intereses tomados de facebook
[
{
"raw_name": "Business and industry",
"name": "Business and industry",
"path": [
"Interests"
],
"key": "Interests > Business and industry",
"parent": "Interests"
},
var elements = document.querySelectorAll('*[style="display:none"]');
elements.forEach(function(el){
el.style.display = "block";
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def test
print "Test"
end
@Mackaber
Mackaber / autopaint.js
Last active April 1, 2017 20:44
Place a pixel at /r/place automatically
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,
@Mackaber
Mackaber / parser.rb
Created September 23, 2016 16:55
Quick script for parsing the new_fields file
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`"