Remove dangling docker images
docker rmi $(docker images -f "dangling=true" -q)| ➜ esphome compile siebenuhr_git.yaml | |
| INFO ESPHome 2025.12.3 | |
| INFO Reading configuration siebenuhr_git.yaml... | |
| INFO Cloning https://github.com/soliddifference/siebenuhr_esphome.git@main | |
| INFO Fetching main | |
| INFO Detected timezone 'Europe/Zurich' | |
| INFO Generating C++ source... | |
| INFO Core config or version changed, cleaning build files... | |
| INFO Compiling app... Build path: /Users/maveonair/Code/github.com/maveonair/siebenuhr_esphome/.esphome/build/siebenuhr |
| ngrok http -host-header=rewrite localhost:5219 |
Remove dangling docker images
docker rmi $(docker images -f "dangling=true" -q)| # start rails console first: | |
| # bundle exec pry -r ./config/environment | |
| require rails | |
| require 'rails/console/app' | |
| require 'rails/console/helpers' | |
| extend Rails::ConsoleMethods | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) |
| class PdfExport < Prawn::Document | |
| def to_pdf | |
| build_pdf | |
| render | |
| end | |
| def build_pdf | |
| add_page_break_if_overflow do | |
| bounding_box([155, cursor - 25], :width => 330) do | |
| # Put some PDF text here... |
| chown user /etc/init.d/xvfb | |
| chmod +x /etc/init.d/xvfb |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonSyntaxException; | |
| import com.android.volley.AuthFailureError; | |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Request; | |
| import com.android.volley.Response; | |
| import com.android.volley.Response.ErrorListener; | |
| import com.android.volley.Response.Listener; |
| require 'active_record/fixtures' | |
| ActiveRecord::Fixtures.create_fixtures("#{Rails.root}/test/fixtures", "fixture") |
| #!/bin/sh | |
| if [[ -z "$1" ]]; then | |
| echo "No Ruby version was specified." | |
| echo "example: install_ruby_rbenv.sh 1.9.3-p429" | |
| exit 1 | |
| fi | |
| RUBY_VERSION=$1 | |
| ###Use this for global readline for later reuse |
| # http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F | |
| # http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curl | |
| curl http://localhost:8983/solr/collection1/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' | |
| # Commit the update | |
| curl http://localhost:8983/solr/collection1/update?commit=true |