Skip to content

Instantly share code, notes, and snippets.

@MrMoshkovitz
MrMoshkovitz / ColorHelper.js
Last active October 5, 2020 11:17
This Color Helper Will Help you Color your logs easily with Chalk, this can be used with Loggers
const chalk = require("chalk");
const font_colors = {
red: chalk.red,
// red: 'red',
green: chalk.green,
blue: chalk.blue,
magenta: chalk.magenta,
orange: chalk.keyword('orange'),
black: chalk.rgb(0, 0, 0),
@MrMoshkovitz
MrMoshkovitz / RequestLogSaver.js
Created October 4, 2020 09:11
RequestLogSaver
const galMorgan = morgan((tokens, req, res) => {
let logFile;
logArr = [
tokens.method(req, res),
tokens["protocol"](req, res) + "://" + tokens["host"](req,res)+tokens.url(req,res)
]
let logText
switch (tokens.method(req,res)) {
case "POST":
@MrMoshkovitz
MrMoshkovitz / killtask.txt
Last active November 4, 2020 12:33
killtask
taskkill -F -IM node.exe
npx kill-port 3000
npx kill-port 3000 3001
npm i @types/node`
http://andrewcmaxwell.com/2016/07/how-to-setup-and-install-docker-on-google-compute-engine
sudo apt-get install docker.io
@MrMoshkovitz
MrMoshkovitz / Check If TOR.txt
Last active November 29, 2020 15:38
Tor Network
https://check.torproject.org/
ipython
lsof
@MrMoshkovitz
MrMoshkovitz / Run As Adminstrator.txt
Last active December 8, 2020 14:05
PowerShell Adminstrator
Start-Process powershell -Verb runAs
and then powershell
"https://github.com/johanbrandhorst/collapse-gitlab-files/blob/master/collapse-all-gitlab-diffs.user.js"
//Pull Request Related
$(".diff-file").find("div.nothing-here-block").each(function (i){
if (!$(this).is(":visible")){
$(this).parents("div.file-holder").find("div.file-title").trigger("click");
}
});
//Commit Related
@MrMoshkovitz
MrMoshkovitz / commentsAddon.txt
Created December 23, 2020 17:56
Better Commenting
/**
* My Method
* * Use "*" For Important
* ! Use "I" for Errors
* ? Use This for things your not sure
* TODO for upcomming tasts
*/
@MrMoshkovitz
MrMoshkovitz / google-dorks
Last active December 25, 2022 16:29 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
"personal information management" site:slant.co OR site:producthunt.com OR site:g2.com OR site:alternativeto.net OR site:saashub.com OR site:startupstash.com OR site:startupresources.io OR site:remote.tools
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!