dig feber.se
dig @1.1.1.1 feber.se
| // Javascript nullish coalescing operator | |
| // Is set to 0 | |
| let x = 0 ?? "hello" | |
| // Is set to goodbye | |
| let y = undefined ?? "goodbye" | |
| // Is set to hello | |
| let z = null ?? "hello" |
| pictures = Proc.new { |file| file.match(/(png|jpeg|jpg)/) } | |
| Dir.entries('.').select &pictures | |
| => ["image1.png", "image2.png", "pic.jpg", "picture.jpeg"] |
| # &, optional chainig | |
| [1,2,3,4,5,6][5]&.to_s | |
| => "6" | |
| [1,2,3,4,5,6][6]&.to_s | |
| => nil | |
| # &, map shorthand notation | |
| to_s = Proc.new { |x| x.to_s } | |
| => #<Proc:0x00000001065bdef0 (irb):8> | |
| [1,2,3].map &to_s |
| docker run -e RUN_LOCAL=true -v $PWD:/tmp/lint github/super-linter |
| #!/usr/bin/env sh | |
| # global settings | |
| yabai -m config mouse_follows_focus off | |
| yabai -m config focus_follows_mouse off | |
| yabai -m config window_origin_display default | |
| yabai -m config window_placement second_child | |
| yabai -m config window_topmost off | |
| yabai -m config window_shadow on | |
| yabai -m config window_opacity off |
| # fn - hjkl > arrow keys | |
| fn - k: skhd -k up | |
| fn - h: skhd -k left | |
| fn - l: skhd -k right | |
| fn - j: skhd -k down | |
| # Terminal | |
| # cmd + t | |
| # Firefox |
| # See open ports | |
| netstat -ant | grep LISTEN |
| // ==UserScript== | |
| // @name Filter | |
| // @version 1.0 | |
| // @description Filter by day | |
| // @author You | |
| // @match https://devurls.com | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=devurls.com | |
| // @grant none | |
| // ==/UserScript== |
| # frozen_string_literal: true | |
| # rubocop:disable Metrics/BlockLength | |
| require 'date' | |
| require 'sinatra' | |
| require 'sinatra/reloader' if development? | |
| set :port, 3020 | |
| set :bind, '0.0.0.0' |