Skip to content

Instantly share code, notes, and snippets.

@kchat001
kchat001 / HTTPCodes.php
Last active August 18, 2016 15:53
HTTP Response Status Codes as constants
<?php
/**
* @author Khalid Chatar
*
* Contains http response status codes
*/
class HTTPCodes {
const INFO_CONTINUE = 100;
const INFO_SWITCHING_PROTOCOL = 101;
@kchat001
kchat001 / borderless.ahk
Last active April 25, 2023 02:17
An AutoHotKey Script that allows to toggle the window title and the border chrome of the current window independently (Ctrl+Win+t and Ctrl+Win+b)
; Borderless Window - AutoHotkey Script
; The script toggles the window border and title bar of the current window independently
; The hotkey is Control+Win+t. It applies changes to whatever window has focus.
^#t::
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
WinSet, Style, ^0xC00000 ; toggle title bar
}
@kchat001
kchat001 / InstallPerUserTools
Created June 28, 2014 17:41
Installs tools that need seperate installation for every user
Disable-MicrosoftUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Set-TaskbarOptions -Size Large -Lock -Dock Left
cinst EthanBrown.ConEmuConfig
cinst SublimeText2.PowershellAlias
cinst dropbox
cinst googledrive
cinst SkyDrive
@kchat001
kchat001 / VS2012_2013Installation
Created June 28, 2014 16:58
Installs .NET 4.5, Visual Studio 2012 & 2013 and NCrunch for VS2012
Disable-MicrosoftUpdate
cinst DotNet4.5
cinst VisualStudio2012Premium
cinst VisualStudio2013Professional
cinst ncrunch.vs2012
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula
@kchat001
kchat001 / PostWindowsInstallation
Last active August 29, 2015 14:03
Installs tools and updates I need after clean Windows installation
Disable-MicrosoftUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Set-TaskbarOptions -Size Large -Lock -Dock Left
cinst DotNet4.5
cinst jdk8
cinst fiddler4
cinst imgburn
cinst git
cinst poshgit