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
| About: | |
| chicken soup recipe using a pre-cooked rotisserie chicken (sold by my local grocery) | |
| Ingredients | |
| 1 bag of fingerling potatoes, washed, scrubbed and halved or quarters (pref) | |
| 2 large carrots, peeled and sliced into 1/4inch thick half circles | |
| 1 large yellow onion, diced | |
| italian parsley, chopped fine | |
| 1 cup frozen corn | |
| 1/4 cup frozen green peas |
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
| import datetime | |
| from typing import Generator | |
| import pytz | |
| from dateutil import rrule | |
| def iter_dates( | |
| start: datetime.datetime, end: datetime.datetime, day_delta=1 | |
| ) -> Generator[datetime.datetime, None, None]: |
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
| diff --git a/setup.py b/setup.py | |
| index 61f710a..73eacc7 100644 | |
| --- a/setup.py | |
| +++ b/setup.py | |
| @@ -15,7 +15,7 @@ | |
| """ | |
| from os import path | |
| -from setuptools import setup | |
| +from setuptools import setup, find_packages |
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
| diff --git a/gcs_sa/gcs/client.py b/gcs_sa/gcs/client.py | |
| index bd49432..61d9b5f 100644 | |
| --- a/gcs_sa/gcs/client.py | |
| +++ b/gcs_sa/gcs/client.py | |
| @@ -45,7 +45,7 @@ class GCSClientPool(): | |
| self.lock.acquire() | |
| if len(self.clients) < self.pool_size: | |
| LOG.debug("Making new GCS client.") | |
| - self.clients.append(storage.Client(config.get('GCP', 'PROJECT'))) | |
| + self.clients.append(storage.Client(config.get('GCP', 'GCS_PROJECT'))) |
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
| diff --git a/gcs_sa/cli/catchup.py b/gcs_sa/cli/catchup.py | |
| index 3980425..da87b46 100644 | |
| --- a/gcs_sa/cli/catchup.py | |
| +++ b/gcs_sa/cli/catchup.py | |
| @@ -117,6 +117,8 @@ def page_outputter(config: ConfigParser, bucket: Bucket, page: Page, | |
| blob_count += 1 | |
| # pylint: disable=protected-access | |
| metadata = blob._properties | |
| + if "metadata" in metadata: | |
| + del metadata["metadata"] |
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
| import gixy | |
| from gixy.plugins.plugin import Plugin | |
| class nonspecific_root(Plugin): | |
| """ | |
| Insecure example: | |
| root /home/nginx | |
| Secure example: |
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
| userid | birth | death | |
|---|---|---|---|
| 586e6e99-a8c7-4257-8511-2cb2ab57ddd6 | 1930-11-05T22:53:20 | 1964-04-05T20:36:27 | |
| a31a7f03-7ba3-4a57-acdf-ce623bac1981 | 1935-01-26T05:51:41 | 1969-03-15T16:49:34 | |
| 969fd530-af1f-45ce-9284-f88fe9d90a00 | 1924-08-15T15:57:49 | 1971-08-12T14:53:13 | |
| a1d9a2e9-05b0-4bd4-8252-49162c57a8e7 | 1929-05-25T06:20:44 | 1977-06-19T03:15:45 | |
| b4ff566d-2972-4d1e-8966-c87fc68952b0 | 1922-06-23T08:51:22 | 1973-06-02T16:46:54 | |
| c4499720-f1d3-4a3d-9401-3c7ce1d32fd4 | 1939-02-19T09:31:58 | 1976-05-22T05:24:06 | |
| b48f5096-251e-465f-93c4-e7d5a5975cc3 | 1921-07-02T05:07:16 | 1953-08-25T03:53:31 | |
| 962dcfc4-55d9-4d70-a928-7a89f4e4a35e | 1924-09-04T20:03:26 | 1979-09-14T00:23:59 | |
| 55e1cea8-c8df-42e7-b257-c8450fd0a31a | 1922-12-12T09:17:33 | 1959-03-30T05:48:02 |
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
| def main! | |
| script = RemoteInfo.new | |
| script.log.debug "Usage looks sane" | |
| script.log.debug "script.options.list: #{script.options.list}" if script.options.list | |
| script.log.debug "script.options.host: #{script.options.host}" if script.options.host | |
| script.log.debug "script.options.user: #{script.options.user}" if script.options.user | |
| script.log.debug "script.options.timeout: #{script.options.timeout}" if script.options.timeout | |
| script.log.debug "script.options.inventory: #{script.options.inventory}" if script.options.inventory | |
| script.usage "You didn't specify a host" unless script.options.host |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <script src="benchmark.js"></script> | |
| <div id="testresult1"> | |
| </div> |
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
| require "subspace" | |
| MassiveRecord::ORM::Base.connection_configuration[:host] = "10.190.111.104" | |
| MassiveRecord::ORM::Base.connection_configuration[:port] = 9090 | |
| MassiveRecord::ORM::Base.connection_configuration[:timeout] = 4 | |
| Subspace::Message::Base.table_name_prefix = "" | |
| MassiveRecord::Wrapper::Connection.new(MassiveRecord::ORM::Base.connection_configuration) | |
| puts MassiveRecord::ORM::Base.connection.open? | |
| Subspace::Message::Base.get_message_group_messages(40000001, 'phoenix', 1, false) |