Language support for .gitignore
create .gitignore file and add configurations from templates
Traditional german filler text :-)
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; | |
} |
# In karma conf | |
customLaunchers: { | |
Chrome_from_lxss: { | |
base: 'Chrome', | |
chromeDataDir: 'C:\\Temp\\karma-' + Date.now() | |
} | |
} | |
# In .zshrc |
Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
const mockProvider = <T>( | |
toMock: Type<T>, | |
setupMock: (m: T) => void | |
): { | |
provide: Type<T>; | |
useFactory: () => T; | |
} => { | |
const m = mock(toMock); | |
setupMock(m); | |
return { provide: toMock, useFactory: () => instance(m) }; |
const mockService: MyService = mock(MyService); | |
when(mockService.someFunction()).thenReturn('some value'); | |
const mockServiceInstance: MyService = instance(mockService); |
public static Task BasicHttpServer(string url, string outputHtml) | |
{ | |
return Task.Run(() => | |
{ | |
HttpListener listener = new HttpListener(); | |
listener.Prefixes.Add(url); | |
listener.Start(); | |
// GetContext method blocks while waiting for a request. | |
HttpListenerContext context = listener.GetContext(); |
import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |