#Code tidbits have found or come up with. Just need a place to keep them.
docker rmi --force $(docker images | grep "^<none>" | awk '{ print $3 }')
docker rmi --force $(docker images -q)
docker rm --force $(docker ps -a -q)
#Code tidbits have found or come up with. Just need a place to keep them.
docker rmi --force $(docker images | grep "^<none>" | awk '{ print $3 }')
docker rmi --force $(docker images -q)
docker rm --force $(docker ps -a -q)
| #!/usr/bin/env ruby | |
| require "awesome_print" | |
| if ARGV.empty? || ARGV[0] == '' || ARGV[0].empty? | |
| length = 10 | |
| else | |
| length = ARGV[0].to_i | |
| end | |
| ap "Generating random string of length #{length}" | |
| r = ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a + %w(! @ # { $ % ^ & * ? < > }) |
| # https://minhajuddin.com/2016/03/03/put-this-in-your-code-to-debug-anything | |
| require 'rouge' | |
| require 'method_source' | |
| require 'pp' | |
| class Dbg | |
| def initialize(object, to:) | |
| @object, @stream = object, to | |
| end |
#STUFF
select * from TABLE where TERM = ALL (SELECT unnest(COLUMN)->HSTORE_KEY);
scope :where_any, ->(key, value) { where("? = ANY (SELECT unnest(\"items\") -> ?)", value, key) }
scope :where_all, ->(key, value) { where("? = ALL (SELECT unnest(\"items\") -> ?)", value, key) }| git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
| git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
| source ~/.bashrc | |
| git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
| git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "strings" |
This feature should be available on all pages that have to do with an order (has the nav bar at the bottom)
| # Nushell Environment Config File | |
| def create_left_prompt [] { | |
| let $prompt = ([ | |
| (ansi green), | |
| (whoami | str trim), | |
| (ansi blue), | |
| '@', | |
| (ansi cyan), | |
| (hostname | str trim), |