save
This commit is contained in:
parent
91a36e03a8
commit
c8b057e6a2
4 changed files with 33 additions and 18 deletions
22
bin/password
22
bin/password
|
|
@ -1,12 +1,20 @@
|
||||||
# search & copy
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
# password for account, must be one or the default
|
||||||
# password amazon
|
# password amazon
|
||||||
|
# copy login
|
||||||
|
# password amazon -l
|
||||||
|
|
||||||
|
# search for password for given account
|
||||||
# password -l artur@gurgul.org
|
# password -l artur@gurgul.org
|
||||||
|
|
||||||
# password -a artur@gurgul.org http://example.com/login
|
# http://example.com/login
|
||||||
|
# password example -l artur@gurgul.org
|
||||||
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
login="${DEFAULT_INTERNET_LOGIN:-${1-}}"
|
# set -euo pipefail
|
||||||
file="$(find web -type f -path "web/*/$DEFAULT_INTERNET_LOGIN.gpg" -print | fzf --delimiter='/' --with-nth=2)"
|
# login="${DEFAULT_INTERNET_LOGIN:-${1-}}"
|
||||||
password_entry="${file%.gpg}"
|
# file="$(find web -type f -path "web/*/$DEFAULT_INTERNET_LOGIN.gpg" -print | fzf --delimiter='/' --with-nth=2)"
|
||||||
pass -c "$password_entry"
|
# password_entry="${file%.gpg}"
|
||||||
|
# pass -c "$password_entry"
|
||||||
|
|
@ -11,7 +11,7 @@ export RUBYLIB="$DAT_ROOT/lib"
|
||||||
export PASSWORD_STORE_DIR=$HOME/.local/lib/secure-vault/passwords
|
export PASSWORD_STORE_DIR=$HOME/.local/lib/secure-vault/passwords
|
||||||
export NOTES_DIR=$HOME/.local/lib/notes
|
export NOTES_DIR=$HOME/.local/lib/notes
|
||||||
|
|
||||||
path=("$GEM_HOME/bin" $path)
|
path=("$GEM_HOME/bin" "$HOME/.cargo/bin" $path)
|
||||||
|
|
||||||
alias gf='git log --all --oneline | fzf'
|
alias gf='git log --all --oneline | fzf'
|
||||||
|
|
||||||
|
|
|
||||||
3
install
3
install
|
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
## Software for bootstraping
|
||||||
|
# curl, gcc
|
||||||
|
|
||||||
# TODO: Packages that need to be added
|
# TODO: Packages that need to be added
|
||||||
# gem install ruby-lsp
|
# gem install ruby-lsp
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,10 @@ module Qemu
|
||||||
|
|
||||||
# for testing only
|
# for testing only
|
||||||
defaults[:detach] = false
|
defaults[:detach] = false
|
||||||
|
|
||||||
defaults[:display] = DisplayMode.fullscreen
|
defaults[:display] = DisplayMode.fullscreen
|
||||||
|
defaults[:display] = DisplayMode.window
|
||||||
|
defaults[:display] = DisplayMode.none
|
||||||
|
|
||||||
opts = defaults.merge(options)
|
opts = defaults.merge(options)
|
||||||
puts options
|
puts options
|
||||||
|
|
@ -112,17 +115,19 @@ module Qemu
|
||||||
else
|
else
|
||||||
#args += ["-device", "virtio-gpu-device"]
|
#args += ["-device", "virtio-gpu-device"]
|
||||||
if opts[:display] == DisplayMode::fullscreen
|
if opts[:display] == DisplayMode::fullscreen
|
||||||
#args += ["-display", "cocoa,full-screen=on"]
|
# #args += ["-display", "cocoa,full-screen=on"]
|
||||||
|
# # attempts:
|
||||||
|
# #args += ["-display", "cocoa,full-screen=on,retina=on"]
|
||||||
|
# # brew install gtk+3 sdl2
|
||||||
|
# # args += ["-display", "sdl,gl=on,full-screen=on"]
|
||||||
|
# #args += ["-display", "gtk,gl=on,full-screen=on"]
|
||||||
|
# #args += ["-display", "cocoa,full-screen=on"]
|
||||||
|
# #args += ["-display", "cocoa,gl=es,full-screen=on"]
|
||||||
|
|
||||||
# attempts:
|
#### TODO: try make it work with custom build
|
||||||
#args += ["-display", "cocoa,full-screen=on,retina=on"]
|
# args += ["-device", "virtio-gpu-gl-pci"]
|
||||||
# brew install gtk+3 sdl2
|
|
||||||
# args += ["-display", "sdl,gl=on,full-screen=on"]
|
# args += ["-display", "sdl,gl=on,full-screen=on"]
|
||||||
args += ["-device", "virtio-gpu-gl-pci"]
|
args += ["-display", "cocoa,full-screen=on"]
|
||||||
args += ["-display", "sdl,gl=on,full-screen=on"]
|
|
||||||
#args += ["-display", "gtk,gl=on,full-screen=on"]
|
|
||||||
#args += ["-display", "cocoa,full-screen=on"]
|
|
||||||
#args += ["-display", "cocoa,gl=es,full-screen=on"]
|
|
||||||
else
|
else
|
||||||
args += ["-display", "cocoa"]
|
args += ["-display", "cocoa"]
|
||||||
end
|
end
|
||||||
|
|
@ -135,7 +140,6 @@ module Qemu
|
||||||
args += ["-device", "virtio-mouse-device"]
|
args += ["-device", "virtio-mouse-device"]
|
||||||
args += ["-device", "virtio-gpu"]
|
args += ["-device", "virtio-gpu"]
|
||||||
|
|
||||||
|
|
||||||
#args += ['-nic', 'user,model=virtio-net-pci']
|
#args += ['-nic', 'user,model=virtio-net-pci']
|
||||||
args += ["-device", "virtio-net,netdev=n0", "-netdev", "user,id=n0"]
|
args += ["-device", "virtio-net,netdev=n0", "-netdev", "user,id=n0"]
|
||||||
# macOS vmnet (shares Mac’s LAN)
|
# macOS vmnet (shares Mac’s LAN)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue