Skip to content

Instantly share code, notes, and snippets.

View fobabs's full-sized avatar
🎯
Focusing

FOBABS fobabs

🎯
Focusing
View GitHub Profile
const crypto = require('crypto');
const accessToken = crypto.randomBytes(64).toString('hex');
const refreshToken = crypto.randomBytes(64).toString('hex');
console.table({ accessToken, refreshToken });
@fobabs
fobabs / clean_code.md
Created November 17, 2022 00:51 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

Keybase proof

I hereby claim:

  • I am fobabs on github.
  • I am fobabs (https://keybase.io/fobabs) on keybase.
  • I have a public key ASDk4i44EzX-QQxzWFOtAnihx2h2-vYi-pY6F_GC_c3s5wo

To claim this, I am signing this object:

@fobabs
fobabs / GoogleHackMasterList.txt
Created April 16, 2022 23:57 — forked from mylamour/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@fobabs
fobabs / toggle.js
Created April 21, 2020 09:46
A react on/off button component
class Toggle extends React.Component {
constructor(props) {
super(props);
this.state = {
isTToggleOn: true
};
// binding the handleClick method
this.handleClick = this.handleclick.bind(this);
}
@fobabs
fobabs / folderlock.bat
Last active May 19, 2024 19:05
A batch file used to lock and hide folders and files in Windows 10
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER