Skip to content

Instantly share code, notes, and snippets.

View jetstreamin's full-sized avatar
:octocat:
chillin' like the vanilla shake that I am

Mike Mahon jetstreamin

:octocat:
chillin' like the vanilla shake that I am
View GitHub Profile
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 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)
@jetstreamin
jetstreamin / Editors - Cheatsheet - Visual Studio 2013 C# Key Bindings Shortcuts
Last active August 29, 2015 14:24
Visual Studio 2013 C# Key Bindings / Shortcuts
VS 2013 Shortcuts
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
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
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).
<!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>
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
@jetstreamin
jetstreamin / ConvertSQLRowsToColumns.sql
Created December 11, 2015 18:40
Convert SQL Rows to Columns
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]
@jetstreamin
jetstreamin / 0_reuse_code.js
Created April 15, 2016 17:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console