Skip to content

Instantly share code, notes, and snippets.

View aravindnc's full-sized avatar
🎮
Code Blooded!

Aravind NC aravindnc

🎮
Code Blooded!
View GitHub Profile
@aravindnc
aravindnc / file_organizer.ps1
Last active May 22, 2024 16:43
Script to organize unsorted files to Year/Month folder. [Powershell]
$sourceDir = ".\"
$destinationDir = ".\"
Get-ChildItem -Path $sourceDir | ForEach-Object {
if ($_.PSIsContainer -eq $false) {
# Use "MMM-dd" for Jan-01 like format
$dateModified = $_.LastWriteTime.ToString("yyyy/MM")
$destinationPath = Join-Path -Path $destinationDir -ChildPath $dateModified
@aravindnc
aravindnc / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Created February 19, 2024 17:15
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@aravindnc
aravindnc / material-dark-color-list-javascript-array.js
Last active March 20, 2020 13:35
Javascript array of dark material color list
const colorList = [
"#63b598", "#ce7d78", "#ea9e70", "#a48a9e", "#c6e1e8", "#648177" ,"#0d5ac1" ,
"#f205e6" ,"#1c0365" ,"#14a9ad" ,"#4ca2f9" ,"#a4e43f" ,"#d298e2" ,"#6119d0",
"#d2737d" ,"#c0a43c" ,"#f2510e" ,"#651be6" ,"#79806e" ,"#61da5e" ,"#cd2f00" ,
"#9348af" ,"#01ac53" ,"#c5a4fb" ,"#996635","#b11573" ,"#4bb473" ,"#75d89e" ,
"#2f3f94" ,"#2f7b99" ,"#da967d" ,"#34891f" ,"#b0d87b" ,"#ca4751" ,"#7e50a8" ,
"#c4d647" ,"#e0eeb8" ,"#11dec1" ,"#289812" ,"#566ca0" ,"#ffdbe1" ,"#2f1179" ,
"#935b6d" ,"#916988" ,"#513d98" ,"#aead3a", "#9e6d71", "#4b5bdc", "#0cd36d",
"#250662", "#cb5bea", "#228916", "#ac3e1b", "#df514a", "#539397", "#880977",
"#f697c1", "#ba96ce", "#679c9d", "#c6c42c", "#5d2c52", "#48b41b", "#e1cf3b",
@aravindnc
aravindnc / Signed AWS Request Sample.php
Created July 16, 2018 18:58
Create signed AWS request using PHP
// / AWS API keys
$aws_access_key_id = 'your-aws-access-key';
$aws_secret_access_key = 'your-aws-secret';
// AWS region and Host Name (Host names are different for each AWS region)
// As an example these are set to us-west-2
$aws_region = 'us-west-2';
$host_name = 'your-url.amazonaws.com';
@aravindnc
aravindnc / Multi Header for DataTable.txt
Created July 16, 2018 18:55
How to add title and image header to all pages while printing using DataTable ?
Step 1
Download below JS file and replace your print.button.js with below it, https://github.com/aravindnc/Buttons/blob/repeating-print-head/js/buttons.print.js
Step 2
Add new option repeatingHead inside the button settings.
Below are the options for repeatingHead,
{
logo: 'Your logo URL to be repeated',