This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will copy source.txt to destination.txt, overwriting destination in the process: | |
type source.txt > destination.txt | |
This will copy source.txt to destination.txt, appending to destination in the process: | |
type source.txt >> destination.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was mirrored from the snapshot of earthserver.com available on archive.org | |
-------------------------------------------------------------------------------- | |
Setting up a modern C++ development environment on Linux with Clang and Emacs | |
I am an independent game developer and this is my personal wiki. | |
Please feel free to email [email protected], and to follow @Earthserver | |
(Redirected from Setting up a C++11 development environment on Linux with Clang and Emacs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VS 2013 Shortcuts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mutually exclusive applications | |
Source: http://www.brad-smith.info/blog/archives/535 | |
I keep several batch scripts on my desktop that each start a set of programs; for example, I have a developer script that launches Visual Studio, SQL Management Studio and a few third-party tools. I also have a social script that launches my twitter client, instant messenger, etc. Some of these scripts overlap (i.e. the same program is included in different scripts) and, also, I may already have one or two of these applications open when I run the batch file. | |
In light of these requirements, I need to start the programs on my list only if they are not already running. Thankfully, this is not too difficult to do in batch scripts: | |
tasklist /FI "IMAGENAME eq [process name]" 2>NUL | find /I /N "[process name]">NUL | |
if "%ERRORLEVEL%" NEQ "0" {cmd /c} start [path to executable] | |
Where [process name] is the name of the process as it appears in the Windows Task Manager; e.g. firefox.exe – and [path to executable] is either the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: http://stackoverflow.com/questions/11573724/windows-service-start-failure-cannot-start-service-from-the-command-line-or-deb | |
Your code has nothing to do with the service installation, it is not the problem. | |
In order to test the service, you must install it as indicated. | |
For more information about installing your service : Installing and Uninstalling Services | |
-------------------------------------------- | |
To install your service manually | |
To install or uninstall windows service manually (which was created using .NET Framework) use utility InstallUtil.exe. This tool can be found in the following path (use appropriate framework version number). | |
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe | |
To install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source:https://github.com/transcode-open/apt-cyg | |
apt-cyg | |
apt-cyg is a Cygwin package manager. It includes a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. | |
Operations | |
install | |
Install package(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ng-app="ionicApp"><head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"> | |
<!-- ionic/angularjs CSS --> | |
<link href="css/ionic.css" rel="stylesheet"> | |
<link href="css/ionic-custom.css" rel="stylesheet"> | |
<!-- ionic/angularjs js bundle --> | |
<script type="text/javascript" src="js/ionic.bundle.js"></script> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Exmaple DOS batch template file | |
@echo off | |
echo My message | |
REM Check passed parameters are correct | |
set _argcActual=0 | |
set _argcExpected=3 | |
for %%i in (%*) do set /A _argcActual+=1 | |
if %_argcActual% NEQ %_argcExpected% GOTO WrongArgs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
SET ANSI_PADDING ON | |
GO | |
CREATE TABLE [dbo].[LotNo]( | |
[IDNo] [bigint] IDENTITY(1,1) NOT NULL, | |
[LotNo] [varchar](50) NULL | |
) ON [PRIMARY] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |