"cocotte bag": exact match"* is thicker than water":*to replace a phrase inside exact matchjaguar -car: minus to filter out matchessite:time.com google: search on site, you don't need '.', e.g. 'site:gov'define:bae: check definition, even for slang$0..$50: numeric range (ignore$)"inbound marketing" ~professional: synonymsrelated:nationalgeographic.com: similar sites
This file contains hidden or 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
| namespace :db do | |
| desc "Kick out PostgreSQL users from the database." | |
| task kick: [:environment] do | |
| begin | |
| ActiveRecord::Base.connection.execute <<-SQL | |
| SELECT pg_terminate_backend(pg_stat_activity.pid) | |
| FROM pg_stat_activity | |
| WHERE pg_stat_activity.datname = '#{ActiveRecord::Base.connection.current_database}'; | |
| SQL | |
| rescue ActiveRecord::StatementInvalid |
This file contains hidden or 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
| #!/bin/sh | |
| # Automatically rotate the screen when the device's orientation changes. | |
| # Use 'xrandr' to get the correct display for the first argument (for example, "eDP-1"), | |
| # and 'xinput' to get the correct input element for your touch screen, if applicable | |
| # (for example, "Wacom HID 486A Finger"). | |
| # | |
| # The script depends on the monitor-sensor program from the iio-sensor-proxy package. | |
| if [ -z "$1" ]; then |
This file contains hidden or 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
| /** | |
| * filter() method iterates over all key/value pair in 'this', and then decides which key/value pairs to keep or discard. | |
| * The key/value pairs that must be kept are then returned as another FilterableObject. | |
| * | |
| * Importantly - the decision to keep or discard a key/value pair is taken by a user defined function that is passed as a parameter. | |
| */ | |
| Object.prototype.filter = function (filterFn) { | |
| var result = {}; | |
| for(key in this) { | |
| if (this.hasOwnProperty(key)) { |
This file contains hidden or 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
| Sidekiq::BatchSet.new.each { |batch| Sidekiq::Batch::Status.new(batch.bid).delete } | |
| Sidekiq::Queue.all.each(&:clear) |
This file contains hidden or 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
| TaskDefinition: | |
| Type: AWS::ECS::TaskDefinition | |
| Properties: | |
| Family: my-app | |
| Cpu: 512 | |
| Memory: 1024 | |
| NetworkMode: awsvpc | |
| RequiresCompatibilities: | |
| - FARGATE | |
| ExecutionRoleArn: <execution role> |
This file contains hidden or 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
| { | |
| "isOnboardingShownOnce": false, | |
| "isGesturesOff": false, | |
| "cfgver": 2.3, | |
| "others": { | |
| "tuilink": false | |
| }, | |
| "normal": { | |
| "gesture": true, | |
| "drag": true, |
This file contains hidden or 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
| /* | |
| * | |
| * This is currently a WIP | |
| * Source originally pulled 3/28/2018 | |
| * https://www.google-analytics.com/analytics.js | |
| * | |
| * Tools: | |
| * 1) Google Chrome source formatter | |
| * 2) VS Code right-click rename symbol | |
| * |
Well, that was unexpected. In the following, I’m trying to follow Jon Evans’ advice from “The Terrible Technical Interview”.
To: [email protected]
From: Ahmed Fasih
Subject: Re: Programming Test Invitation
Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| *M UNKNOWN MEXICAN TRUCKING COMPANY | |
| 8CON CONTSHIP CONTAINER LINE | |
| 99M UNKNOWN MEXICAN OVERLAND CARRIER | |
| AAAB AAA MOTORS | |
| AAAC AAACTION TRANSPORTATION INC | |
| AAAD A A A DELIVERY INC | |
| AAAG ATC LOGISTICS INC | |
| AAAO AAMODT INC | |
| AAAU ASIA CONTAINER LEASING CO LTD | |
| AAAW AAA WALKER TRANSPORTATION SERVICES |