$mod refers to the modifier key (alt by default)
startx i3start i3 from command line$mod+<Enter>open a terminal$mod+dopen dmenu (text based program launcher)$mod+rresize mode ( or to leave resize mode)$mod+shift+eexit i3
| extern crate rustc_version; | |
| use rustc_version::{version_meta, Channel} | |
| fn main() { | |
| // Set cfg flags depending on release channel | |
| match version_meta().unwrap().channel { | |
| Channel::Stable => { | |
| println!("cargo:rustc-cfg=rustc-stable"); | |
| } | |
| Channel::Beta => { |
| # Export GPG key to `key.asc` file and then import | |
| gpg --import key.asc | |
| # or add --pinentry-mode if there is ap problem with entering the password | |
| # gpg --import --pinentry-mode loopback key.asc | |
| git config --global commit.gpgsign true | |
| git config --global user.signingkey E25C1E01F3A98447 | |
| git config --global gpg.program /usr/bin/gpg | |
| git config --global user.email roustem@1password.com |
| #!bash.exe | |
| export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
| echo ; | |
| echo Starting connection with ssh-agent... | |
| ssh-add -l 2>&1 >/dev/null | |
| if [ $? = 2 ]; then | |
| rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
| # Exit status 2 means couldn't connect to ssh-agent; start one now | |
| echo Creating new ssh-agent... | |
| ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "build", | |
| "type": "shell", | |
| "command": "cargo build", | |
| "group": { |
| function x(name) { | |
| console.log(">x: ", name); | |
| return new Promise(function (resolve, reject) { | |
| setTimeout(() => { | |
| console.log("<x: ", name); | |
| resolve(name); | |
| }, 5000); | |
| }); | |
| } |
| // grep - Search stdin or some files for lines matching a given string. | |
| use std::error::Error; | |
| use std::io::{self, BufReader}; | |
| use std::io::prelude::*; | |
| use std::fs::File; | |
| use std::path::PathBuf; | |
| fn grep<R>(target: &str, reader: R) -> io::Result<()> | |
| where R: BufRead |
| #!/bin/bash | |
| # This assumes that the ~6GB mojave installer is in the /Applications folder. | |
| # If it's not, just open the App Store, search Mojave, and you can download the installer file from there. | |
| hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave | |
| sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave | |
| mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
| hdiutil detach /Volumes/Install\ macOS\ mojave |
This document describes how to set up Windows 10 for cross-platform development (Go, NodeJS, etc) with Windows Subsystem for Linux (WSL).
Most of the information here is collected from