Skip to content

Instantly share code, notes, and snippets.

View taufikherjanto's full-sized avatar

Taufik Herjanto taufikherjanto

View GitHub Profile
@queky18
queky18 / Day 0: Hello, World.
Last active February 3, 2024 01:02
Hackerrank - 30 days of code in PHP
<?php
$_fp = fopen("php://stdin", "r");
$inputString = fgets($_fp); // get a line of input from stdin and save it to our variable
// Your first line of output goes here
print("Hello, World.\n");
// Write the second line of output
@leekelleher
leekelleher / backup-dev.bat
Created April 13, 2012 17:33
Personal batch script to quickly back-up my MSSQL database and wwwroot files, (typically for use with Umbraco).
:: ###### BACK-UP JOB ######
@ECHO OFF
:: Set the constants
SET BACKUP_DIR=C:\path\to\_backup
SET TEMP_DIR=%BACKUP_DIR%\TEMP
SET TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%
SET ARCHIVE_DIR=%BACKUP_DIR%\%TODAY%
SET WWWROOT_NAME="ProjectName"
SET WWWROOT_SOURCE=C:\path\to\wwwroot