Content :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BuildElectron | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| buildwin: | |
| name: BuildWindows | |
| runs-on: windows-latest | |
| steps: |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # https://gist.github.com/jtmoon79/c951f81f621bb87ddb60836245aca4ff | |
| # | |
| # Script to generate a site-to-site Wireguard IPv4 VPN tunnel | |
| # configuration files, and commands for systemd services. | |
| # This script only covers a narrow scope of possible networking arrangements. | |
| # It may not perfectly fit the user's needs, but it may provide the user with | |
| # a working example that they can modify for their needs. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from solana.publickey import PublicKey | |
| from solana.rpc.api import Client | |
| from solana.rpc.types import TokenAccountOpts | |
| import base64 | |
| import base58 | |
| import struct | |
| import json | |
| import requests | |
| import redis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/python3 | |
| import argparse | |
| import subprocess | |
| import itertools | |
| parser = argparse.ArgumentParser(description='Concatenate videos with FFMPEG, add "xfade" between segments.') | |
| parser.add_argument('--segments_file', '-f', metavar='Segments file', type=str, nargs=1, | |
| help='Segments text file for concatenating. e.g. "segments.txt"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Example", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const win = new electron.BrowserWindow(...) | |
| // When work makes progress, show the progress bar | |
| function onProgress (progess) { | |
| // Use values 0 to 1, or -1 to hide the progress bar | |
| win.setProgressBar(progress || -1) // Progress bar works on all platforms | |
| } | |
| // When work completes while the app is in the background, show a badge | |
| var numDoneInBackground = 0 |