Skip to content

Instantly share code, notes, and snippets.

Prasanna Loganathar prasannavl

Block or report user

Report or block prasannavl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
prasannavl / sysctl.conf
Last active Oct 20, 2017
Linux - Laptop Kernel Config
View sysctl.conf
# Def: 50; Reduce tendency to swap on large RAM system
# Def: 100; Reduce to retain inode/dentry caches
# Def: 10; Make it slightly longer to wait longer before writing to HD.
# Def: 20; Make it much larger before starting sync writes
prasannavl / Set-WindowState.ps1
Created Sep 26, 2015
Set a given window state for any window using WinAPI.
View Set-WindowState.ps1
function Set-WindowState {
Set a given window state using WinAPI.
Use the ShowWindowAsync function to set the Window state for
any given window handle or the current powershell process.
Set-WindowState -State "MINIMIZE"
prasannavl / Clone-AllGitHubRepos.ps1
Created Sep 26, 2015
Clone all the repos for a given GitHub username.
View Clone-AllGitHubRepos.ps1
function Clone-AllGitHubRepos
Clone all GitHub Repositories of a given user.
Recursively clone all the repos for a given username.
Clone-AllGitHubRepos -User "aspnet"
prasannavl / Set-DisplayOff.ps1
Created Sep 26, 2015
Powershell script to turn display off
View Set-DisplayOff.ps1
# Turn display off by calling WindowsAPI.
# POWER_OFF 0x0002
Add-Type -TypeDefinition '
using System;
prasannavl / Update-AutoModuleManifest.ps1
Created Sep 26, 2015
Updates a module manifest automatically with all the files in the powershell scripts in the module directory as scripts to process.
View Update-AutoModuleManifest.ps1
function Update-AutoModuleManifest
Updates a module manifest automatically with all the script files
in the module directory as scripts to process.
Looks for the given module's path, and then uses New-ModuleManifest to
create a manifest file which includes all the "*.ps1" files in the
folder as "ScriptsToProcess".
prasannavl / New-FileShortcut.ps1
Last active Dec 21, 2017
Create windows shortcuts from Powershell
View New-FileShortcut.ps1
function New-FileShortcut
Create Windows shortcuts
Creates shortcuts of the Target in the given location.
Given locations can either be the full path, or just the name in which
case its created on the current path.
If just the target path is given, it creates a shortcut with the same
You can’t perform that action at this time.