Skip to content

Instantly share code, notes, and snippets.

View DEARaison's full-sized avatar
🎯
Focusing

DEA Raison DEARaison

🎯
Focusing
View GitHub Profile
@DEARaison
DEARaison / The Window Navigator Object.html
Created November 6, 2023 15:55
The Window Navigator Object navigator.onLine
<!DOCTYPE html>
<html>
<body>
<h1>The Window Navigator Object</h1>
<h2>All Properties</h2>
<div id="demo"></div>
<script>
@DEARaison
DEARaison / RemoveItem.ps1
Last active September 28, 2023 14:36
Remove Item
$locationToRemove = Get-Item -Path ""
Get-ChildItem -Path $locationToRemove -Force | ForEach-Object {
Remove-Item -Force -Recurse -Path $_.FullName
"Removed $_"
}
@DEARaison
DEARaison / GroupFilesByExtensionRecursively.ps1
Last active September 28, 2023 14:37
Group Files By Extension Recursively
"Please note that this script will modify your directory, You must back up your directory by yourself!"
#pause
$currentLocation = Get-Item -Path ""
# Create Grouped By Extension directory
$parentOfCurrentLocation = Split-Path -Parent $currentLocation
$groupedByExtensionLocation = Join-Path -Path $parentOfCurrentLocation -ChildPath "Grouped By Extension"
New-Item -Force -ItemType Directory $groupedByExtensionLocation
@DEARaison
DEARaison / Fix the login issue on the Microsoft Edge
Created September 23, 2023 16:49
Fix login issue on Microsoft Edge
1. Goto "Settings" -> "Clear browsing data" -> Click on "Choose what to clear".
2. Choose "Time range": "All time".
3. Tick on all the browsing data except "Passwords" and "Autofill form data (includes forms and cards)"
4. Click on "Clear now".
5. Restart the Microsoft Edge.
6. Repeat from step 1 to step 5 one more time.
7. Check if the login issue on the Microsoft Edge was resolved.
@DEARaison
DEARaison / GPG
Created September 23, 2023 16:41
GPG
GPG
• Export GPG details
1. Running command to get secret key in base64 format:
## gpg -a --export-secret-keys <your-email-address> | base64 -w 0
1. Running command to get ownertrust in base64 format:
## gpg --export-ownertrust | base64 -w 0
@DEARaison
DEARaison / Reset an Internet Connection (Flush DNS).txt
Created April 7, 2023 10:41
Reset an Internet Connection (Flush DNS)
Type "ipconfig /flushdns" and press Enter.
Type "ipconfig /registerdns" and press Enter.
Type "ipconfig /release" and press Enter.
Type "ipconfig /renew" and press Enter.
Type "netsh winsock reset" and press Enter.
Restart the computer.
@DEARaison
DEARaison / Scroll and zoom Excel
Created January 26, 2023 10:49
Scroll and zoom Excel
Sub setDefault()
Dim Worksheet As Worksheet
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
With ws
.Cells.Font.Name = ""
End With
@DEARaison
DEARaison / DoubleCheckedSingletonTemplate.java
Created December 8, 2022 07:05 — forked from Bloody-Badboy/DoubleCheckedSingletonTemplate.java
A Better Singleton template for Intellij IDEA/ Android Studio. To add go to Settings > Editor > File and Code Templates > Hit Create Template and add this one
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#if (${IMPORT_BLOCK} != "")${IMPORT_BLOCK}
#end
#parse("File Header.java")
#if (${VISIBILITY} == "PUBLIC")public #end class ${NAME} #if (${SUPERCLASS} != "")extends ${SUPERCLASS} #end #if (${INTERFACES} != "")implements ${INTERFACES} #end {
private static volatile ${NAME} sInstance = null;
private ${NAME}() {
if (sInstance != null) {
@DEARaison
DEARaison / How To Fix GeForce Experience "Your Broadcast To Twitch Failed" Streaming Error Solution
Created September 29, 2022 16:20
How To Fix GeForce Experience "Your Broadcast To Twitch Failed" Streaming Error Solution
1. Log out Twitch account from GeForce Experience:
In-game overlay -> Settings -> Connect -> Select Twitch account -> Log out.
2. Disconnect GeForece Experience app from Twitch account:
Settings -> Connections -> Other Connections -> NVIDIA GeForce Experience -> Disconnect.
Azure Active Directory | Devices | Enterprise State Roaming