Desc. | keys |
---|---|
split panel vertical | Ctrl+b % |
split horizontal | Ctrl+b " |
navigate panes | Ctrl+b arrow keys |
- Structure and Interpretation of Computers
- Four Thousand Weeks
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
package subcommands | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
) | |
func main() { | |
uploadCmd := flag.NewFlagSet("upload", flag.ExitOnError) |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" |
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
FROM centos:centos7 | |
RUN yum check-update; \ | |
yum install -y gcc libffi-devel python3 epel-release; \ | |
yum install -y openssh-clients; \ | |
yum clean all; \ | |
yum install ansible -y; |
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
#!/bin/bash | |
# Update all packages that have available updates. | |
sudo yum update -y | |
# Install Python 3 and pip. | |
sudo yum install -y python3-pip | |
# Upgrade pip3. | |
sudo pip3 install --upgrade pip |
Dockerfile
FROM centos:centos7
COPY requirements-azure /tmp
RUN yum check-update; \
yum install -y gcc libffi-devel python3 epel-release; \
yum install -y openssh-clients; \
curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo; \
yum install -y powershell; \
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
$keyName = '{keyName}' | |
ssh-keygen -f $keyName -t rsa -N '""' -b 4096 -C '{email}' | |
$publicKey = (Get-Content "$keyName.pub" -Raw).ToString() | |
gh auth login | |
gh api "repos/{userName}/{repo}/keys" -f "key=$publicKey" -f "title=ROkey" -F read_only="true" |
NewerOlder