Skip to content

Instantly share code, notes, and snippets.

View flipace's full-sized avatar
🙈
Peek-a-boo

Patrick Hübl-Neschkudla flipace

🙈
Peek-a-boo
  • ovos media gmbh
  • vienna
  • 01:41 (UTC +02:00)
View GitHub Profile
@flipace
flipace / git-log-to-tsv.sh
Created October 2, 2015 09:29 — forked from pwenzel/git-log-to-tsv.sh
Git Log to Tab-Delimited CSV File
# Local Dates:
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt
# ISO Dates:
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt
@flipace
flipace / replacePropertyValue.js
Created November 29, 2015 19:46
Deep replace a value within an object or array (using lodash or underscore)
/**
* Deep search and replaces the given property value "prevVal" with "newVal"
* @param {any} prevVal [description]
* @param {any} newVal [description]
* @param {object|array} object the original object or array in which the values should be replaced
* @return {object|array} the new object or array
*/
function replacePropertyValue(prevVal, newVal, object) {
const newObject = _.clone(object);
@flipace
flipace / ccomit.py
Created December 6, 2016 16:15
Calculate commit numbers accross all git projects in/below the current directory
#!/usr/bin/python
import os
import subprocess
import operator
from slugify import slugify
import datetime
now = datetime.datetime.now()
@flipace
flipace / cloudSettings
Last active October 13, 2017 09:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-13T09:00:21.780Z","extensionVersion":"v2.8.3"}
@flipace
flipace / rememberMe.md
Created November 7, 2017 07:32
A list of repositories and tools i'd like to remember.
@flipace
flipace / rememberMe.md
Created November 7, 2017 07:32
A list of repositories and tools i'd like to remember.
@flipace
flipace / cloudSettings
Last active February 2, 2018 13:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-02-02T13:35:57.715Z","extensionVersion":"v2.8.7"}
@flipace
flipace / Contract Killer 3.md
Created May 29, 2018 09:49 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@flipace
flipace / gdpr-list.json
Last active June 23, 2023 11:48
List of URLs where you can request your data according to GDPR/DSGVO laws
[
{ "name": "Amazon", "url": "https://www.amazon.de/gp/help/customer/contact-us?", "note": "Select, in this order: 'Digitale Dienste' -> 'Datenauskunft beantragen' -> 'Datenauskunft für eine spätere Zusendung beantragen' -> 'Daten aus allen Kategorien anfordern' -> Namen eingeben und Nachricht vervollständigen. -- Amazon Support Staff will review your request and send you an email, asking about a postal address. If you don't answer to their mail, your request won't be fulfilled." },
{ "name": "McDonalds", "url": "https://corporate.mcdonalds.com/corpmcd/gdpr-rights-center.html" },
{ "name": "willhaben.at", "url": "https://datenschutz.willhaben.at/" },
{ "name": "Spotify", "url": "https://www.spotify.com/account/privacy/" },
{ "name": "Google", "url": "https://takeout.google.com" },
{ "name": "PlayStation", "email": "dpo@scee.net" },
{ "name": "Humble Bundle", "email": "dpo@humblebundle.com" },
{ "name": "REWE Group AT", "email": "datenschutz@rewe-group.at" },
{ "name": "BILLA", "url": "https:
@flipace
flipace / discrepancy-vscode-tsc.md
Created June 5, 2018 20:18
Typescript Issue Debugging
  1. Check version of tsc with tsc --version
  2. Check version of typescript used in VSCode (in the statusbar next to the "TypeScript" file mode)
  3. If these two versions don't match (or if they match, but you're using the integrated VSCode version in VSCode) find the path to typescripts lib folder which tsc and the find the lib folder which contains tsserver.js and tsc.js
  4. Add the correct sdk path to your VS Code configuration:
{
  "typescript.tsdk": "/Users/$(whoami)/.nvm/versions/node/v8.9.1/lib/node_modules/typescript/lib"
}