This file contains 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 <iostream> | |
#include <stdlib.h> | |
int start=1; | |
int steps=2; | |
int max_value=15; | |
int main(){ |
This file contains 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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
This file contains 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
jmp $ | |
times 508 db 0 | |
dw 0xaa55 |
This file contains 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
mov ah, 0x0e ; set reg ah to 0x0e to inidcate teletype mode , | |
mov al,'H' ; al needs to be the (ascii)value to print | |
int 0x10 ;required interrupt | |
mov al,'u' | |
int 0x10 | |
mov al,'h' | |
int 0x10 | |
mov al,'u' | |
int 0x10 | |
jmp $;//inf loop current line |
This file contains 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
mov ah, 0x0e ; teletype | |
mov al,'*' ; ascii | |
times 20 int 0x10 ; call 20 times interrupt 10 to print 20 * | |
; newline | |
mov al,0x0a ;Linefeed | |
int 0x10 | |
mov al,0x0d ;Cariage return | |
int 0x10 | |
; | |
mov al,'H' |
This file contains 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
mov ah, 0x0e | |
call starline | |
call newline | |
mov al,'H' | |
int 0x10 | |
mov al,'u' | |
int 0x10 | |
call newline | |
call starline | |
infloop: |
This file contains 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
floppya: 1_44=boot.bin, status=inserted | |
boot: a |
This file contains 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
mov ah, 0x0e | |
call starline | |
call newline | |
mov al,'H' | |
int 0x10 | |
mov al,'u' | |
int 0x10 | |
call newline | |
mov al,'*' | |
call doit20 |
This file contains 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
jmp shutdown | |
infloop: | |
jmp $ | |
shutdown: | |
mov ah,0x53 | |
mov al,0x07 | |
mov bx,0x01 | |
mov cx,0x03 | |
int 0x15 | |
times 510-($-$$) db 0 |
This file contains 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
ssh pi@raspberrypi #sofern der dhcp in eurem netzwerk dies richtig zuordnet müsste es möglich sein sich so einzuloggen | |
ssh pi@ip.adresse #alternativ die ip adresse des pis nutzen, die rc.local sorgt dafür dass diese beim hochfahren angezeigt wird |
OlderNewer