This plots the CPU temperature of the past 2 minutes in the terminal using spark.
Example run:
current: 58.0
▅▅▄▅▅▅▃▃▃▂▂▂▁▂▂▁▂▂▂▂▂▂▂▂▃▃▃▃▄▃▄▃▅▃▅▄▅▅▆█▆██▆▆█▆
| /*--------------------------------------------------------------------------------------------- | |
| * Copyright (c) Microsoft Corporation. All rights reserved. | |
| * Licensed under the MIT License. See License.txt in the project root for license information. | |
| *--------------------------------------------------------------------------------------------*/ | |
| import 'vs/css!./media/sidebysideeditor'; | |
| import { Dimension, $, clearNode } from 'vs/base/browser/dom'; | |
| import { Registry } from 'vs/platform/registry/common/platform'; | |
| import { IEditorControl, IEditorPane, IEditorOpenContext, EditorExtensions } from 'vs/workbench/common/editor'; | |
| import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput'; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="0" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="" Wgl="True" DisableAC="True" XDMCPTerminate="False"/> |
This plots the CPU temperature of the past 2 minutes in the terminal using spark.
Example run:
current: 58.0
▅▅▄▅▅▅▃▃▃▂▂▂▁▂▂▁▂▂▂▂▂▂▂▂▃▃▃▃▄▃▄▃▅▃▅▄▅▅▆█▆██▆▆█▆
| <!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>, |
| <!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>, |
| #!/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 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hello World!</title> | |
| <style> | |
| html, body, #container { | |
| width: 100%; | |
| height: 100%; | |
| padding: 0; |
This script will download and replace ~/Applications/VSCode-linux-x64 with the latest VS Code Insiders.
jq: https://stedolan.github.io/jq/download/update-code somewhere in your PATHEither copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
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 itgit pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out| #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)); |