These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Username = "su" | |
$Password = "password" | |
$group = "Administrators" | |
$adsi = [ADSI]"WinNT://$env:COMPUTERNAME" | |
$existing = $adsi.Children | where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username } | |
if ($existing -eq $null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=IF(1/COUNTIF(`$range$:$range`,`criteria`)=1,SUMIF(`range to sum`,`criteria`,`sum`),0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/31005696#31005696 | |
//how it works | |
//Open the file(s) that contain your locked VBA Projects. | |
//Create a new file with the same type as the above and store this code in Module1 | |
Option Explicit | |
Private Const PAGE_EXECUTE_READWRITE = &H40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=TRIM(SUBSTITUTE(`cell to remove spaces from`, CHAR(160), " ")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = "" # Your Folder Path here. | |
Get-ChildItem -Directory -Depth 1 $path | | |
Select-Object @{ | |
name='Fullname'; # Can be replaced with Name if you want just directory name. | |
expression={$_.FullName} | |
}, @{ | |
name='LastWriteTime'; | |
expression={($_.LastWriteTime).toShortDateString()} | |
} | Export-Csv -Path "Output path" -NoTypeInformation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## How to hide API keys from github ## | |
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
2. In the terminal, create a config.js file and open it up: | |
touch config.js | |
atom config.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = "" # Your Folder Path here. | |
Get-ChildItem -Directory -Depth 1 $path | | |
Select-Object @{ | |
name='Fullname'; # Can be replaced with Name if you want just directory name. | |
expression={$_.FullName} | |
}, @{ | |
name='LastWriteTime'; | |
expression={($_.LastWriteTime).toShortDateString()} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class Resource<T>(val data: T? = null, val message: String? = null){ | |
class Success<T>(data: T) : Resource<T>(data) | |
class Loading<T>(data: T? = null) : Resource<T>(data) | |
class Error<T>(data: T? = null, message: String) : Resource<T> (data, message) | |
} |
NewerOlder