prep xubuntu image with https://github.com/fijimunkii/umpc-ubuntu
add the following to /usr/share/X11/xorg.conf.d/20-intel.conf
# fix screen flickering
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
ls -1 /usr/local/Library/LinkedKegs | while read line; do echo $line; brew unlink $line; brew link --force $line; done | |
brew list -1 | while read line; do brew unlink $line; brew link $line; done |
[ | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36", | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0", | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36", | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36", | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36", | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15", | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KH |
#!/bin/sh | |
# delete github actions runs for disabled workflows | |
repo="$1" | |
for workflow_id in $(gh api /repos/$repo/actions/workflows | jq -r '.workflows[] | select(.state == "disabled_manually") | .id'); do | |
for run_id in $(gh api /repos/$repo/actions/workflows/$workflow_id/runs | jq -r '.workflow_runs[].id'); do | |
gh api /repos/$repo/actions/runs/$run_id -X DELETE | |
sleep 1 # to avoid rate limit | |
done | |
done |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
console.log("%c+","font-size: 1px; padding: 180px 320px; line-height: 360px; background: url(http://i.imgur.com/kZfvHRV.gif); background-size: 640px 360px; color: transparent;"); |
prep xubuntu image with https://github.com/fijimunkii/umpc-ubuntu
add the following to /usr/share/X11/xorg.conf.d/20-intel.conf
# fix screen flickering
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
INPUT=$1 | |
DEST=$2 | |
indices=$(curl -s -XGET $INPUT/_cat/indices?h=i) | |
for INDEX in $indices | |
do | |
elasticdump --input=$INPUT/$INDEX --output=$DEST/$INDEX --type=data | |
done |
Docker for Mac lets you run any Linux executable in an isolated process on Mac. A graphical app is just another process, that needs access to the X11 socket of the system, or an X11 server. You can run X11 applications on a Mac using an open source project called Xquartz. The steps to expose XQuartz to a Linux process running in Docker are simple:
# https://groups.google.com/forum/#!topic/mailing.openssl.users/3kK_f0ywCZQ | |
openssl req -new -x509 -days 24855 -key ca.key -out ca.crt |
const data = JSON.stringify({a:1,b:2,c:3},null,2); | |
const GIST_ID = 'axdl090asdfojal3rwaf'; | |
const GITHUB_TOKEN = process.env.GITHUB_TOKEN; | |
return new Promise((resolve, reject) => { | |
const postData = JSON.stringify({files:{"ua.json":{content:data}}}); | |
const options = { | |
hostname: 'api.github.com', | |
port: 443, | |
path: `/gists/${GIST_ID}`, |