Skip to content

Instantly share code, notes, and snippets.

View arafatjamil01's full-sized avatar
🏠
Working from home

Arafat Jamil arafatjamil01

🏠
Working from home
View GitHub Profile
@arafatjamil01
arafatjamil01 / wifi.sh
Last active December 15, 2021 21:09
Wifi penetration testing notes
# -------- Preconnection Attacks
#============================================
ifconfig wlan0 down
#change the mac address of wireless adapter
ifconfig wlan0 hw ether 00:11:22:33:44:55
#---------helping process------
airmon-ng check kill
#-------------
#turn on monitor mode, process 1, the device must be down
iwconfig wlan0 mode monitor
/**
*
* Import Class
* A helper class for support CS to OCDI
*
*/
if ( !class_exists( 'OCDI_Plugin' ) )
return;
@arafatjamil01
arafatjamil01 / wordpress_useful_codes.php
Last active March 3, 2022 13:20
Useful codes in wordpress
// Post author id retrieving from a post
$post_author_id = get_post_field( 'post_author', get_the_ID() );
// Get date from theme setttings
the_time( get_option( 'date_format' ) )
@arafatjamil01
arafatjamil01 / customization.xml
Last active August 16, 2022 04:48
PHPCS customization personally
Convert long array syntax into short array ones,
replace the line - Generic.Arrays.DisallowShortArraySyntax to Generic.Arrays.DisallowLongArraySyntax
------------
<rule ref="Generic.Arrays.DisallowLongArraySyntax">
<type>warning</type>
</rule>
Fix \r\n issue for spacing
-----------
<rule ref="Generic.Files.LineEndings">
@arafatjamil01
arafatjamil01 / oh-my-posh-tokyo-night-customized
Last active June 4, 2024 20:17
Oh my posh tokyo night customized for windows power shell. This one shows if git changes are not committed or pushed
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": " {{ .Folder }} :: {{if .Root}}Admin{{end}}",
"palette": {
"main-bg": "#24283b",
"terminal-red": "#f7768e",
"pistachio-green": "#9ece6a",
"terminal-green": "#73daca",
"terminal-yellow": "#e0af68",
"terminal-blue": "#7aa2f7",