defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write -g WebKitDeveloperExtras -bool YES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# &, 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -e RUN_LOCAL=true -v $PWD:/tmp/lint github/super-linter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See open ports | |
netstat -ant | grep LISTEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Stimulus</title> | |
<script type="module"> | |
import { | |
Application, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# rubocop:disable Layout/LineLength | |
require 'net/https' | |
require 'ruby-cheerio' | |
require 'json' | |
require 'cgi' | |
require 'open-uri' | |
# Pick your target here |