Skip to content

Instantly share code, notes, and snippets.

$ electerm
cp: '/home/evan/.config/user-dirs.locale' and '/home/evan/.config/user-dirs.locale' are the same file
error parsing $HOME/.ssh/config
maybe no $HOME/.ssh/config, but it is ok
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module '../build/Debug/pty.node'
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._resolveFilename (/snap/electerm/x2/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (internal/modules/cjs/loader.js:528:25)
Building wrapper
Skipping stage desktop-qt5 (already ran)
Staging bitcoin-core
Staging wrapper
Priming desktop-qt5
Priming bitcoin-core
Priming wrapper
Snapping 'bitcoin' /
Snapped bitcoin_0.17.1_amd64.snap
~/bitcoin-core❯ snap download bitcoin-core
#!/usr/bin/env python3
import requests
import urllib
import sys
import os
import argparse
import datetime
import json
ISO8601 = "%Y-%m-%dT%H:%M:%SZ"
#!/usr/bin/env python3
import requests
import urllib
import sys
import os
import argparse
import datetime
import json
ISO8601 = "%Y-%m-%dT%H:%M:%SZ"
#!/usr/bin/env python3
import requests
import json
import os
import sys
import datetime
from tenacity import retry, stop_after_attempt, retry_if_exception_type
from string import Template
REPOSITORIES_FOR_LANGUAGE = Template('''
{
"data": {
"search": {
"repositoryCount": 4862,
"edges": [
{
"node": {
"nameWithOwner": "electron/electron",
"releases": {
"nodes": [
@evandandrea
evandandrea / query.graphql
Created September 8, 2018 15:50
GraphQL is awesome
query {
r1: repository(owner:"octocat", name:"Hello-World") {
...RepoInfo
}
r2: repository(owner:"desktop", name:"desktop") {
...RepoInfo
}
r3: repository(owner:"snapcore", name:"snapcraft") {
...RepoInfo
}

Electron snapping tips

Make sure you're using the latest electron-builder:

     "electron-builder": "^20.8.0",

Or add it:

npm install --save-dev electron-builder
#!/usr/bin/env python3
'''Print every stable snap in the Ubuntu store, sorted by first publication.
For example:
2017-02-08T08:51:17.326613Z openmvs
2017-02-08T10:32:53.331479Z anta-i7z
2017-02-08T10:38:35.496156Z cpufreq
2017-02-08T21:06:24.386841Z verum-cli
2017-02-09T03:19:58.789293Z wuzz
'''
~/Branches/hello-snap
☻ docker run -ti -v $PWD:$PWD -w $PWD snapcore/snapcraft snapcraft
"grade" property not specified: defaulting to "stable"
Preparing to pull hello-node-snap
Pulling hello-node-snap
Downloading 'node-v8.10.0-linux-x64.tar.gz'[==========================================================================================================================================================] 100%
npm --cache-min=Infinity install --global hello-node-snap
/Users/ev/Branches/hello-snap/parts/hello-node-snap/install/bin/hello-node-snap -> /Users/ev/Branches/hello-snap/parts/hello-node-snap/install/lib/node_modules/hello-node-snap/bin/hello-node-snap
+ hello-node-snap@1.0.2
added 1 package in 4.655s