Skip to content

Instantly share code, notes, and snippets.

View deejayy's full-sized avatar

deejayy (hu) deejayy

View GitHub Profile
<app-spinner *ngIf="someGetApiResult.loading$ | async"></app-spinner>
<app-table [data]="data$ | async"></app-table>
@deejayy
deejayy / maderas.txt
Created November 16, 2021 19:07 — forked from heywoodlh/maderas.txt
Clone of the arsenal, armory & library by Maderas (@hackermaderas) -- https://pastebin.com/v8Mr2k95
The arsenal, armory & library by Maderas (@hackermaderas, #CyberpunkisNow) 6/8/2019
Original / 1st version here: https://pastebin.com/rMw4WbhX
___________________________________________________________________________________
# Basic knowledge requirements for Red Teaming, PenTesting, Hacking & Cybersecurity
# These are the basic competencies expected (and tested for during the in-person technical interview) by one of the largest, most visible InfoSec companies # on Earth.
@deejayy
deejayy / howto.txt
Created November 17, 2022 23:24
Add exceptions to Windows firewall based on blocked connections
Get-EventLog -Log Security -Newest 100 -InstanceId 5152 -Message "*%%14593*" | Sort-Object -Property TimeGenerated | Select-Object -ExpandProperty Message | ? { $_ -notlike "*svchost*" } | % { $_ -split "\r\n" } | ? { $_ -like "*Application Name*" -or $_ -like "*Destination*" } | % { $_ -replace "\\device\\harddiskvolume.",":" }
$path = Read-Host 'Path: '
$appName = Read-Host 'App name: '
$date = Get-Date -Format "yyyy-MM-dd"
Write-Output "XX $appName / $date"
New-NetFirewallRule -DisplayName "XX $appName / $date" -Direction Outbound -Program $path -Action Allow
@deejayy
deejayy / fileContainsPhrase-stream.js
Created July 22, 2024 11:51
fileContainsPhrase-stream.js
const fs = require("fs");
console.log(Object.keys(process.memoryUsage()).join("\t"));
console.log(
Object.values(process.memoryUsage())
.map((value) => Math.round(value / 1e4) / 100)
.join("\t")
);
javascript:(() => { const ignoredWords = /Formula.?1|%C3%81zsia Expressz|Boyard|X-Faktor|Sztarbox|MotoGP|Sztarban.sztar|Megasztar|Kisertes|ValoVilag|Azsia.express|Az.arulok|orokosok|House.of.the.Dragon/i; const weigths = { xvid_hun: 500, xvid: 500, dvd_hun: 500, dvd: 500, dvd9_hun: 500, dvd9: 500, hd_hun: 500, hd: 500, xvidser_hun: 300, xvidser: 300, dvdser_hun: 300, dvdser: 300, hdser_hun: 300, hdser: 300, }; document.querySelectorAll('.box_torrent').forEach((box) => { box.removeAttribute('hidden'); const category = box.querySelector('.box_alap_img a').getAttribute('href').match(/tipus=(.*)?/)[1]; const title = box.querySelector('.torrent_txt a')?.getAttribute('title'); const popularity = box.querySelector('.box_d2').innerText.length; const uploadDate = box.querySelector('.box_feltoltve2').innerText; const seeders = parseInt(box.querySelector('.box_s2').innerText, 10) + Math.log2((new Date() - new Date(uploadDate).getTime