Local branch: git branch -d <local_branch>
Remote branch: git push origin --delete <remote_branch>
git checkout -b
# msbuild.ps1 | |
[CmdletBinding(PositionalBinding = $false)] | |
param ( | |
[ValidateSet('Build', 'Clean', 'Rebuild')] | |
[string] | |
$Target = 'Build', | |
[ValidateSet('Release', 'Debug')] | |
[string] | |
$Configuration = 'Release', |
using System; | |
using System.Diagnostics; | |
namespace SimplestLoggerUtility | |
{ | |
public static class Logger | |
{ | |
public static void Success(string message) | |
{ | |
EventLog.WriteEntry(AppDomain.CurrentDomain.FriendlyName, message, EventLogEntryType.Information); |
Write-Host "SYSTEM_TEAMPROJECT: $ENV:SYSTEM_TEAMPROJECT" | |
Write-Host "SYSTEM_TEAMFOUNDATIONSERVERURI: $ENV:SYSTEM_TEAMFOUNDATIONSERVERURI" | |
Write-Host "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: $ENV:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI" | |
Write-Host "SYSTEM_COLLECTIONID: $ENV:SYSTEM_COLLECTIONID" | |
Write-Host "SYSTEM_DEFAULTWORKINGDIRECTORY: $ENV:SYSTEM_DEFAULTWORKINGDIRECTORY" | |
Write-Host "BUILD_DEFINITIONNAME: $ENV:BUILD_DEFINITIONNAME" | |
Write-Host "BUILD_DEFINITIONVERSION: $ENV:BUILD_DEFINITIONVERSION" | |
Write-Host "BUILD_BUILDNUMBER: $ENV:BUILD_BUILDNUMBER" | |
Write-Host "BUILD_BUILDURI: $ENV:BUILD_BUILDURI" | |
Write-Host "BUILD_BUILDID: $ENV:BUILD_BUILDID" |
Simplicity is prerequisite for reliability. --Edger Djikstra
<?php | |
/* | |
* Filename: SimpleAuth.php | |
* Version: 1.0 | |
* Author: Heiswayi Nrird | |
* Dscription: Simple PHP script to protect any PHP page using session | |
* Website: https://heiswayi.nrird.com | |
* | |
* HOW TO USE | |
* ========== |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Formalize CSS</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<h1> | |
Example of all form elements |
<?php | |
// Configuration | |
$title = 'Internal Image Hosting Script'; | |
$filedir = 'up'; // uploaded image dir | |
$maxsize = 5242880; //max size in bytes | |
$allowedExts = array('png', 'jpg', 'jpeg', 'gif'); | |
$allowedMime = array('image/png', 'image/jpeg', 'image/pjpeg', 'image/gif'); | |
$baseurl = $_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']).'/'.$filedir; | |
function compressImage($source_url, $destination_url, $quality) { |
<?php | |
/** | |
* File Manager Script | |
*/ | |
// Default language ('en' and other from 'filemanager-l10n.php') | |
$lang = 'en'; | |
// Auth with login/password (set true/false to enable/disable it) | |
$use_auth = true; |