Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
Discover gists
#cloud-config | |
packages: | |
- nginx | |
#jq is a command-line json processor https://stedolan.github.io/jq/ | |
- jq | |
- unattended-upgrades | |
runcmd: | |
- export DOMAIN=your_domain_here.com | |
- export DO_API_TOKEN=PASTE_YOUR_DIGITALOCEAN_API_TOKEN_HERE | |
- export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address) |
{ | |
"queries": [{ | |
"name": "List all owned users", | |
"queryList": [{ | |
"final": true, | |
"query": "MATCH (m:User) WHERE m.owned=TRUE RETURN m" | |
}] | |
}, | |
{ | |
"name": "List all owned computers", |
function parseJwt (token) { | |
var base64Url = token.split('.')[1]; | |
var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
return JSON.parse(window.atob(base64)); | |
}; |
I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.
Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details
Internally, launchd has several domains, but launchctl 1 would only ask for service names,
<?php | |
function progress_bar($done, $total, $info="", $width=50) { | |
$perc = round(($done * 100) / $total); | |
$bar = round(($width * $perc) / 100); | |
return sprintf("%s%%[%s>%s]%s\r", $perc, str_repeat("=", $bar), str_repeat(" ", $width-$bar), $info); | |
} |
#!/bin/sh | |
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=http://po.cc.ibaraki-ct.ac.jp:3128 |
I want to use Logitech Hub profiles in multiple Windows accounts and multiple Windows Devices. Logitech Hub allows me to upload a profile linked to my account or public, when I download the profile on the second account/machine, the profile is being assigned to the default profile. I was not able to find a way to reassign macros etc to the actual Application profile.
The problem is that in each instance of Logitech Hub, each app has a unique ID, this ID is not transferable to another instance of the application. Even when I upload a profile to my online Logitech profile when I download it back to my device, it can't assign it to the correct ID, so it stays in the Default profile.
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api' | |
import 'monaco-editor/esm/vs/language/css/monaco.contribution' | |
import 'monaco-editor/esm/vs/language/html/monaco.contribution' | |
import 'monaco-editor/esm/vs/language/json/monaco.contribution' | |
import 'monaco-editor/esm/vs/language/typescript/monaco.contribution' | |
import 'monaco-editor/esm/vs/basic-languages/monaco.contribution' | |
import { createElement as create, FC, useRef, useEffect } from 'react' | |
import { css } from 'emotion' | |
import { useTheme } from '../hooks/useTheme' |
cd ~ | |
sudo apt-get update | |
sudo apt-get install git-core curl build-essential openssl libssl-dev | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
node -v | |
sudo ln -s $HOME/node/ /usr/local/lib/node |