Skip to content

Instantly share code, notes, and snippets.

View b14ck0ps's full-sized avatar
:octocat:
pew pew pew

Azran Hossain b14ck0ps

:octocat:
pew pew pew
View GitHub Profile
@b14ck0ps
b14ck0ps / Microsoft.PowerShell_profile.ps1
Last active February 1, 2023 17:41
Power shell profile.. Location " C:\Users\Azran\Documents\PowerShell "
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost') {
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
# Import-Module oh-my-posh
@b14ck0ps
b14ck0ps / signature
Last active January 8, 2022 15:52
TorrentBD Signature BBcode
[center][font=verdana][size=1][color=#FF47F3]R[/color][color=#E752F4]O[/color][color=#CF5DF6]A[/color][color=#B768F8]D[/color] [color=#877EFB]T[/color][color=#6F89FD]O[/color] [color=#50A3FD]S[/color][color=#49B2FB]U[/color][color=#43C1F9]P[/color][color=#3CD1F7]R[/color][color=#36E0F5]E[/color][color=#2FEFF3]M[/color][color=#29FEF1]E[/color][/size]
[b][color=#45FFBB]⇃[/color][color=#44F7BF]⇂[/color] [color=#44E8C9]D[/color][color=#44E0CE]O[/color][color=#43D8D3]W[/color][color=#43D1D8]N[/color][color=#43C9DD]L[/color][color=#43C1E1]O[/color][color=#43BAE6]A[/color][color=#42B2EB]D[/color] [color=#6A77D5]↿[/color][color=#786EC8]↾[/color] [color=#935BAC]U[/color][color=#A0519F]P[/color][color=#AE4891]L[/color][color=#BB3E83]O[/color][color=#C93575]A[/color][color=#D62B68]D[/color][color=#F1184C]
[/color][size=6] [color=#45FFBB]8[/color][color=#44F4C1]0[/color][color=#44E9C8].[/color][color=#44DECF]2[/color][color=#43D4D6]2[/color][color=#43C9DD]M[/color][color=#43BEE3]b
@b14ck0ps
b14ck0ps / makeGpgKey.md
Last active June 4, 2023 16:04
This works for me.
  • Download GPG4Win
  • Open CMD
  • gpg --full-gen-key
  • Please select what kind of key you want: (4) RSA (sign only)
  • RSA keys may be between 1024 and 4096 bits long. What keysize do you want? 4096
  • Please specify how long the key should be valid. 0 = key does not expire
  • Key does not expire at all Is this correct? (y/N) Y
@b14ck0ps
b14ck0ps / php.ini
Created February 23, 2022 15:31
xDebug config for win11H2, work with 3.x.x
[xDebug]
zend_extension = xdebug
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = 9003
;////MID====================================
.MODEL SMALL
.STACK 100H
.DATA
B1 DB 'ENTER A CHARACTER$ :'
.CODE
MAIN PROC
@b14ck0ps
b14ck0ps / Instruction.md
Last active November 8, 2022 05:22
GPG key import export

Instruction

GPG -k for list

<----- export ------>

gpg --export -a "Azran Hossain" > public.key

gpg --export-secret-key -a "Azran Hossain" > private.key

@b14ck0ps
b14ck0ps / appsettings.json
Last active May 20, 2023 10:27
connection string for MS SQL -> ASP .Net Core 6
"ConnectionStrings": {
"DefaultConnection": "data source=Zireael;initial catalog=db-name;TrustServerCertificate=True;Integrated Security=true"
}
//docker
"ConnectionStrings": {
"DefaultConnection": "data source=localhost;initial catalog=NY778;TrustServerCertificate=True;Integrated Security=false;User Id=sa;Password=xxxxx!123"
format = """
[░▒▓](#a3aed2)\
[  ](bg:#a3aed2 fg:#090c0c)\
[](bg:#769ff0 fg:#a3aed2)\
$directory\
[](fg:#769ff0 bg:#394260)\
$git_branch\
$git_status\
[](fg:#394260 bg:#212736)\
$nodejs\
@b14ck0ps
b14ck0ps / web.xml
Created March 4, 2023 11:22
servlet-webxm-template
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>ServletApp</display-name>
<description>New ServletApp</description>
<servlet>
<servlet-name>Home</servlet-name>
<servlet-class>app.Home</servlet-class>
@b14ck0ps
b14ck0ps / move-wsl.md
Created June 13, 2023 18:33
move the vhdx with out any error...

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\{your linux uuid}\BasePath

from default to \?\D:\Path\to\ext4.vhdx , then move ext4.vhdx to that path, reboot WSL2, and it seems work well.

default user: goto /etc/wsl.conf

[user]
default=b14ck0ps