Some of the command line examples for interacting with Windows VMs require credentials. The examples assume they are exported in the current shell environment for convience:
export VBOXUSER=vboxuser
export VBOXPASS=vboxuser| #!/bin/bash | |
| # Download, extract and update Livepeer binary from Github to a pre-existing directory you set below | |
| # It assumes you have extracted the previous livpeer tar.gz in it and run livepeer from the same directory | |
| # Not intended to be run as root | |
| # | |
| # Expects bash, jq, curl, grep, sed, sha256sum and tar to be installed, usually available even on embedded systems | |
| # Windows Subsystem for Linux (WSL) or Cygwin should provide every utility on Windows | |
| # shellcheck disable=SC2015 | |
| set -euf -o pipefail |
| Example use: | |
| # qubes control | |
| bindsym $mod+u exec --no-startup-id "qubes-i3-dmenu-shell --start" | |
| bindsym $mod+Shift+u exec --no-startup-id "qubes-i3-dmenu-shell --pause" | |
| bindsym $mod+i exec --no-startup-id "qubes-i3-dmenu-shell --shutdown" | |
| bindsym $mod+Shift+i exec --no-startup-id "qubes-i3-dmenu-shell --unpause" | |
| # qubes launching | |
| bindsym $mod+o exec --no-startup-id "qubes-i3-dmenu-shell --global" |
| @set installhooks_args=%*& set installhooks_self=%~f0& powershell -c "(gc \"%~f0\") -replace '@set installhooks_args.*','#' | Write-Host" | powershell -c -& goto :eof | |
| $srcdir = split-path $env:installhooks_self | |
| $vivpath = "c:\Program Files\Vivaldi\Application\" | |
| Try { | |
| $dstdir = split-path ((Get-ChildItem -path $vivpath -recurse browser.html | Sort-Object -property CreationTime -descending | Select-Object -first 1).FullName) | |
| write-host "Destination directory: $dstdir" | |
| $encoding = (New-Object System.Text.UTF8Encoding($False)) |
| /*! | |
| * VERSION: 0.9.1 | |
| * DATE: 2019-02-21 | |
| * UPDATES AND DOCS AT: http://greensock.com | |
| * | |
| * @license Copyright (c) 2008-2019, GreenSock. All rights reserved. | |
| * MorphSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use | |
| * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. | |
| * This work is subject to the software agreement that was issued with your membership. | |
| * |
How to unstar all your github stars with API
visit here: https://github.com/settings/tokens
make sure to check repo scope, it is needed to unstar
| cd /home/<user>/ | |
| sudo apt-get install unzip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
| cd Android/tools/bin |