Skip to content

Instantly share code, notes, and snippets.

@petetnt
petetnt / 1.ps1
Last active Nov 26, 2019
Finding UWP / WindowStore package names for launching games (and others)
View 1.ps1
# 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 Apr 23, 2019
On the issue of staleness
View stale.md

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 Oct 17, 2019
eslint-rule-no-cats
View no-cats.md

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

View controllers.application.js
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',
});
View 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:

View test
;(window.alert("foo"))();
View application.controller.js
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 Dec 7, 2015
Brackets undo issue
View after.json
{
"done": [
{
"ranges": [
{
"anchor": {
"line": 34,
"ch": 34
},
"head": {
@petetnt
petetnt / azure.md
Last active Sep 2, 2015
How to run Grunt after pushing changes to your Azure site
View azure.md
  npm install -g azure-cli
  • Create .deployment and deploy.cmd files
 cd your/folder/
View webm4pifu
// ==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';