Update as of 8.08.2021:
- Hid the bookmarks bar and fine-tuned some header styles.
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
| #!/usr/bin/env python3 | |
| # wsl | |
| import sqlite3 | |
| import json | |
| from pathlib import Path | |
| from datetime import datetime | |
| # path to WorkspaceStorage on Windows or any paths with folders and state.vscdb inside | |
| ENTRY_PATH="/mnt/c/Users/manoj/AppData/Roaming/Cursor/User/workspaceStorage" |
| queue = Sidekiq::Queue.new("default") | |
| queue.each do |job| | |
| if job.klass == "DailyFrequencyCreatorWorker" | |
| DailyFrequencyCreatorWorker.set(queue: 'daily_frequency_creator').perform_async(*job.args) | |
| job.delete | |
| end | |
| end;nil |
Update as of 8.08.2021:
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
| # return 1 if alive, 0 if dead | |
| ping_success() { | |
| ! ping -c1 -W1 8.8.8.8 >/dev/null 2>&1 | |
| } | |
| # Spinner taken from https://stackoverflow.com/a/12498395 | |
| spinnerindex=0 | |
| spinner='-\|/' | |
| sleepy_spinner() { | |
| for (( i=0; i<$(($1 * 2)); i++ )) |
| # Linux | |
| # add the following to "~/.gitconfig" file | |
| [merge] | |
| tool = intellij | |
| [mergetool "intellij"] | |
| cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED") | |
| trustExitCode = true | |
| [diff] |
| # Generate and use an oauth2 bearer token for the Twitter API in Ruby | |
| # | |
| # For Application-Only authentication to the twitter API, a 'bearer token' | |
| # is required to authenticate agains their endpoints for rate limiting | |
| # purposes. | |
| # | |
| # This script generates a bearer token by posting to twitter and then it | |
| # uses that token to poll their API. | |
| # | |
| # Note, the base 64 encoded consumer credentials for the bearer token needs |
| stats = Sidekiq::Stats.new | |
| stats.queues | |
| stats.enqueued | |
| stats.processed | |
| stats.failed |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| WITH table_scans as ( | |
| SELECT relid, | |
| tables.idx_scan + tables.seq_scan as all_scans, | |
| ( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes, | |
| pg_relation_size(relid) as table_size | |
| FROM pg_stat_user_tables as tables | |
| ), | |
| all_writes as ( | |
| SELECT sum(writes) as total_writes | |
| FROM table_scans |