Skip to content

Instantly share code, notes, and snippets.

View pcomans's full-sized avatar
🙈

Philipp Comans pcomans

🙈
  • Software Engineer at @1debit
  • Sacramento
View GitHub Profile
@pcomans
pcomans / zones-settings.json
Created August 10, 2020 20:51
Golden Ratio Fancy Zones
{
"devices": [
{
"device-id": "AOC2716#5&3a86d8e0&0&UID4352_3840_2160_{00000000-0000-0000-0000-000000000000}",
"active-zoneset": {
"uuid": "{AF8673B0-F115-4755-BAD3-867AE42F1EB6}",
"type": "custom"
},
"editor-show-spacing": true,
"editor-spacing": 16,
@pcomans
pcomans / zones-settings.json
Created August 10, 2020 20:51
Golden Ratio Fancy Zones
{
"devices": [
{
"device-id": "AOC2716#5&3a86d8e0&0&UID4352_3840_2160_{00000000-0000-0000-0000-000000000000}",
"active-zoneset": {
"uuid": "{AF8673B0-F115-4755-BAD3-867AE42F1EB6}",
"type": "custom"
},
"editor-show-spacing": true,
"editor-spacing": 16,
// ==UserScript==
// @name Sentry.io - highlight run_id
// @namespace Violentmonkey Scripts
// @match https://sentry.io/*
// @grant none
// @version 1.0
// @author philipp
// @description 4/21/2020, 2:59:11 PM
// ==/UserScript==
setTimeout(function () {
@pcomans
pcomans / installatron.sh
Created August 16, 2019 18:23
ADB Installatron
# Adopted from WorkingMatt's solution at
# https://stackoverflow.com/questions/8610733/how-can-i-adb-install-an-apk-to-multiple-connected-devices
echo "Installatron"
for SERIAL in $(adb devices | tail -n +2 | cut -sf 1);
do
for APKLIST in $(ls *.apk);
do
echo "Installatroning $APKLIST on $SERIAL"
adb -s $SERIAL install -r $APKLIST
WITH
active_qcds AS (
SELECT
a.qcd_quote_sheet_category_definition_pk AS qcd_quote_sheet_category_definition_pk
FROM
website.qcd_quote_sheet_category_definition AS a
JOIN (
SELECT
MAX(b.qcd_activation_time) AS qcd_activation_time,
b.qcd_rca_request_category_pk
@pcomans
pcomans / settings.json
Created June 26, 2018 20:28
VS Code Settings
{
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true
@pcomans
pcomans / test.txt
Created May 22, 2018 22:33
Philipp & Digit
abc
sudo apt-get -y install build-essential libxkbcommon-dev zlib1g-dev libfreetype6-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev nvidia-cg-toolkit nvidia-cg-dev libavcodec-dev libsdl2-dev libsdl-image1.2-dev libxml2-dev yasm
git clone git://github.com/libretro/libretro-super.git
cd libretro-super
SHALLOW_CLONE=1 ./libretro-fetch.sh
./retroarch-build.sh

Keybase proof

I hereby claim:

  • I am pcomans on github.
  • I am phpp (https://keybase.io/phpp) on keybase.
  • I have a public key ASCt3kyJ310I2UkrfnHELpcA4Nl4qZflaE9J7B-8BXQwLQo

To claim this, I am signing this object:

@pcomans
pcomans / onShowView.js
Last active May 4, 2017 00:44
Code to trigger a function when a backbone view is attached to the DOM. For those situations when you can't use Marionette's onShow.
var OnShowView = Backbone.View.extend({
onShow: function () {
console.log("Do something");
},
onRender: function () {
this.afterDomAttachment(this.onShow);
},
afterDomAttachment: function (afterAttachment) {