- With dd:
tar -Oxz image.tar.gz | dd of=... status=progress
- With pv:
pv image.tar.gz | tar -Oxz | dd of=...
- Not a tar archive:
pv image.img.xz | xzcat | dd bs=2M of=/dev/sde1
- Not a tar archive:
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
fn main() { | |
let mut x; | |
for i in 0..101 { println!("{}", if i % 15 == 0 { "FizzBuzz" } else if i % 5 == 0 { "Buzz" } else if i % 3 == 0 { "Fizz" } else { x = format!("{}", i);x.as_str() } ); } | |
} |
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
<# | |
Bored shit | |
by dd86k | |
#> | |
function ErasePlayer() { | |
[Console]::SetCursorPosition($x, $y); ' ' | |
} | |
function PrintPlayer() { | |
[Console]::SetCursorPosition($x, $y); '@' | |
} |
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
wchar* GetCommandLineWFast() { | |
version (X86_64) asm { | |
mov RAX,GS:[0x60]; | |
mov RAX,[RAX+0x20]; | |
mov RAX,[RAX+0x78]; | |
} else version (X86) asm { | |
mov EAX,FS:[0x30]; | |
mov EAX,[EAX+0x10]; | |
mov EAX,[EAX+0x44]; | |
} |
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
import std.stdio; | |
import std.getopt; | |
import std.digest.sha : SHA1; | |
import std.datetime.stopwatch : StopWatch; | |
import std.range : chunks; | |
import std.mmfile : MmFile; | |
import std.file : getSize; | |
import core.memory : GC; | |
enum CHUNKSIZE = 4096; |
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
set constantshow | |
set linenumbers | |
set nonewlines | |
set noconvert | |
set smarthome | |
set nohelp | |
set minibar | |
#set mouse | |
bind ^F whereis all |
OlderNewer