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
2023-08-07T08:56:37.049Z pid=3981 tid=511 INFO: Booted Rails 7.0.6 application in development environment | |
2023-08-07T08:56:37.049Z pid=3981 tid=511 INFO: Running in ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux] | |
2023-08-07T08:56:37.049Z pid=3981 tid=511 INFO: See LICENSE and the LGPL-3.0 for licensing details. | |
2023-08-07T08:56:37.049Z pid=3981 tid=511 INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org | |
2023-08-07T08:56:37.049Z pid=3981 tid=511 INFO: Sidekiq 7.1.1 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>nil} | |
2023-08-07T08:56:37.052Z pid=3981 tid=511 INFO: Sidekiq 7.1.1 connecting to Redis with options {:size=>5, :pool_name=>"default", :url=>nil} | |
2023-08-07T08:56:37.052Z pid=3981 tid=511 INFO: Starting processing, hit Ctrl-C to stop | |
2023-08-07T08:56:47.776Z pid=3981 tid=ggt class=SampleJob jid=2cc5d10e1526cfea570e63e2 INFO: start |
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 | |
class SampleJob | |
include Sidekiq::Job | |
include Sidekiq::Throttled::Job | |
sidekiq_throttle concurrency: { limit: 1 } | |
def perform(id) | |
puts "Processing ##{id}" |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name ""; | |
return 444; | |
} |
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
crontab -l | grep -E '^@|^\*|^[0-9]' | sort -n -k2 -k1 |
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
export MYSQL_PWD=$(>&2 read -s -p "Input password (will not echo): "; echo "$REPLY") |
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
SELECT * | |
FROM (SELECT table_schema AS `DB Name`, | |
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) AS `DB Size in MB` | |
FROM information_schema.tables | |
GROUP BY `DB Name`) AS tmp_table | |
ORDER BY `DB Size in MB` DESC; |
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
<div id="drag-drop-area"></div> |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ |
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
numbers.filter(function (n) { | |
return n % 2 == 0; | |
}); |
NewerOlder