Skip to content

Instantly share code, notes, and snippets.

View fricci's full-sized avatar

Ferenc Czina fricci

  • Loxon Solutions Zrt.
  • Hungary
View GitHub Profile
@fricci
fricci / index.mjs
Created October 4, 2022 19:27
Checkout, commit and push to remote git repository
import * as fs from 'fs';
import * as http from 'isomorphic-git/http/node/index.cjs';
import git from 'isomorphic-git';
import * as uuid from 'uuid';
const repo = 'https://github.com/fricci/git_test_repo.git';
const target = '/Users/fczina/Projects/git_sandbox/test'
async function clone() {
await git.clone({
@fricci
fricci / README.md
Last active November 1, 2017 16:49
Connect to MongoDB
$ npm install mongoose --save
$ npm install @types/mongoose --save-dev
$ npm install @types/mongodb --save-dev
@fricci
fricci / electron.service.ts
Last active October 31, 2017 21:11
Electron + Angular communication
import { Injectable } from '@angular/core';
import { ipcRenderer } from 'electron';
import * as childProcess from 'child_process';
@Injectable()
export class ElectronService {
ipcRenderer: typeof ipcRenderer;
childProcess: typeof childProcess;