Skip to content

Instantly share code, notes, and snippets.

View petetnt's full-sized avatar
😺
garfield you are one funny cat

Pete Nykänen petetnt

😺
garfield you are one funny cat
View GitHub Profile
@petetnt
petetnt / 1.ps1
Last active November 26, 2019 21:30
Finding UWP / WindowStore package names for launching games (and others)
# For some reason it's super hard to find package names and their application IDs for Windows
# if you need one (for example for GloSC). Luckily you can also use this PowerShell oneliner
#
# Step:
# 1. Open PowerShell
# 2. Run the following command, replace the ApplicationName with your app name (eg. Gears 5, OuterWorlds, BloodStained)
$AppToFind="<ApplicationName>";"$(Get-AppPackage -Name "*$AppToFind*")!$((Get-AppxPackage -Name "*$AppToFind*" | Get-AppxPackageManifest).package.applications.application.id)"
@petetnt
petetnt / stale.md
Last active April 23, 2019 15:21
On the issue of staleness

On the issue of staleness

@sindresorhus posted this tweet today about a thing I remember writing about beforehand too (or at least have thought about it a lot): staleness

Controversial opinion: Stale issues in open source projects are fine. Auto-closing issues based on staleness is an annoyance to users and can drive potential contributors away. There must be a better way of handling issue overload.

@sindresorhus (https://twitter.com/sindresorhus/status/1082145283285250048)

Here's a couple of short thoughts I have on the issue of staleness after maintaining things like brackets and our own projects for years.

@petetnt
petetnt / no-cats.md
Last active October 17, 2019 07:50
eslint-rule-no-cats

Disallow Use of 🐱 (no-cats)

JavaScript's console.log(kissa) is often used while debugging code, which should be removed before deployment to production.

console.log("kissa");

Rule Details

import Ember from 'ember';
export default Ember.Controller.extend({
shouldBeHidden:'Without space: This shouldn\'t get unbounded',
shouldBeHiddenToo:'With space: This shouldn\'t get unbounded',
});
@petetnt
petetnt / keybase.md
Created October 19, 2016 20:19
keybase.md

Keybase proof

I hereby claim:

  • I am petetnt on github.
  • I am petetnt (https://keybase.io/petetnt) on keybase.
  • I have a public key ASCgOXXSKXbYv0nmx4mKG-r2kBDSSm04QkuP25GhzJmfSQo

To claim this, I am signing this object:

@petetnt
petetnt / test
Last active March 8, 2016 08:44
;(window.alert("foo"))();
@petetnt
petetnt / application.controller.js
Created February 21, 2016 10:47
Ember.js issue #11255
import Ember from 'ember';
export default Ember.Controller.extend({
shouldBeHidden:'Without space: This shouldn\'t get unbounded',
shouldBeHiddenToo:'With space: This shouldn\'t get unbounded',
});
@petetnt
petetnt / after.json
Last active December 7, 2015 07:30
Brackets undo issue
{
"done": [
{
"ranges": [
{
"anchor": {
"line": 34,
"ch": 34
},
"head": {
@petetnt
petetnt / azure.md
Last active September 2, 2015 07:19
How to run Grunt after pushing changes to your Azure site
  npm install -g azure-cli
  • Create .deployment and deploy.cmd files
 cd your/folder/
@petetnt
petetnt / webm4pifu
Created September 30, 2014 15:19
WebM Pifulle
// ==UserScript==
// @name webm4pifu
// @namespace http://github.com/petetnt
// @description webm pifulle embed (greasemonkey/tampermonkey)
// @include http://www.punkinfinland.net/forum/*
// @version 0.0.1
// ==/UserScript==
(function () {
'use strict';