Skip to content

Instantly share code, notes, and snippets.

Process: Electron [44697]
Path: /Volumes/VOLUME/*/Visual Studio Code - Insiders 3.app/Contents/MacOS/Electron
Identifier: com.microsoft.VSCodeInsiders
Version: 1.15.0-insider (1.15.0-insider)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron [44697]
User ID: 501
Date/Time: 2017-07-26 09:41:10.141 +0200

Keybase proof

I hereby claim:

  • I am joaomoreno on github.
  • I am joaomoreno (https://keybase.io/joaomoreno) on keybase.
  • I have a public key whose fingerprint is C15C 1B76 4693 B7A7 0D7C 1FFB FCFB 366E 4FD6 AA73

To claim this, I am signing this object:

@joaomoreno
joaomoreno / settings.json
Created January 8, 2018 20:31
VS Code Settings
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Fira Code iScript",
"editor.fontSize": 14,
"editor.lineHeight": 21,
"workbench.settings.openDefaultSettings": false,
"terminal.integrated.fontSize": 13,
"editor.tabSize": 2,
"editor.insertSpaces": false,
"files.trimTrailingWhitespace": true,
@joaomoreno
joaomoreno / bug.cpp
Created January 9, 2018 10:10
timing bug
#include "stdafx.h"
#include <iostream>
#include <chrono>
#include <thread>
int main()
{
while (true) {
std::cout << "sleeping for 500ms" << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(500));
@joaomoreno
joaomoreno / ..Git PR Aliases.md
Last active June 4, 2021 13:57 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and merges main into it
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@joaomoreno
joaomoreno / README.md
Last active February 1, 2024 22:19
VS Code Insiders Updater for Linux

VS Code Insiders Updater for Linux

This script will download and replace ~/Applications/VSCode-linux-x64 with the latest VS Code Insiders.

gif

Install

  1. Install jq: https://stedolan.github.io/jq/download/
  2. Place update-code somewhere in your PATH
@joaomoreno
joaomoreno / index.html
Created August 2, 2018 13:06
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<style>
html, body, #container {
width: 100%;
height: 100%;
padding: 0;
@joaomoreno
joaomoreno / radiotray-ng-now-playing.sh
Created September 13, 2018 09:01
Radiotray-NG Now Playing Script
#!/bin/sh
META=`dbus-send --print-reply --dest=com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state 2> /dev/null`
STATUS=$(echo $META | sed 's/^.*"state"\s*:\s*"\([^"]*\)".*$/\1/')
if [[ "$STATUS" == "playing" ]]; then
ARTIST=$(echo $META | sed 's/^.*"artist"\s*:\s*"\([^"]*\)".*$/\1/')
TITLE=$(echo $META | sed 's/^.*"title"\s*:\s*"\([^"]*\)".*$/\1/')
echo "$ARTIST - $TITLE"
fi
@joaomoreno
joaomoreno / index.html
Created December 4, 2018 10:24
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@joaomoreno
joaomoreno / index.html
Created December 4, 2018 10:24
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,