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
| map $http_referer $bad_referer { | |
| hostnames; | |
| default 0; | |
| # Put regexes for undesired referers here | |
| "~social-buttons.com" 1; | |
| "~semalt.com" 1; | |
| "~kambasoft.com" 1; | |
| "~savetubevideo.com" 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
| #include <unistd.h> | |
| #include <mach/mach.h> | |
| #include <mach/mach_vm.h> | |
| #include <mach-o/dyld.h> | |
| int | |
| main (int argc, char * argv[]) | |
| { | |
| volatile char * library; | |
| const mach_vm_size_t page_size = getpagesize (); |
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
| /* | |
| * Allows to set arbitrary speed for the serial device on Linux. | |
| * stty allows to set only predefined values: 9600, 19200, 38400, 57600, 115200, 230400, 460800. | |
| */ | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <asm/termios.h> | |
| int main(int argc, char* argv[]) { |
##Set environment variables
export TARGET=aarch64-none-elf
export PREFIX=/work/public/$TARGET
export PATH=$PATH:$PREFIX/bin##Build binutils
mkdir build-binutils
cd build-binutils
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
| /* | |
| * Minimalistic implementation of the XModem/YModem protocol suite, including | |
| * a compact version of an CRC16 algorithm. The code is just enough to upload | |
| * an image to an MCU that bootstraps itself over an UART. | |
| * | |
| * Copyright (c) 2014 Daniel Mack <github@zonque.org> | |
| * | |
| * License: MIT | |
| */ |
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
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger (doppelheathen@gmail.com) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
NewerOlder