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 bt | |
import pandas as pd | |
class DividendFlow(bt.Algo): | |
def __init__(self, dividends: pd.DataFrame): | |
self.dividends = dividends | |
self.initialized = False | |
self.last_date = 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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/http" | |
"time" |
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
admin: | |
access_log_path: /dev/null | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 10001 | |
static_resources: | |
listeners: | |
- name: listener_0 |
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
func newResource(hostname, version, serviceName string) *resource.Resource { | |
return resource.NewWithAttributes( | |
semconv.SchemaURL, | |
semconv.ServiceNameKey.String(serviceName), | |
semconv.ServiceVersionKey.String(version), | |
semconv.ServiceInstanceIDKey.String(hostname), | |
semconv.TelemetrySDKLanguageGo, | |
semconv.TelemetrySDKVersionKey.String("1.7.0"), | |
semconv.TelemetrySDKNameKey.String("opentelemetry"), | |
) |
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
extraArgs: {} | |
agent: | |
## If false, agent will not be installed | |
## | |
enabled: true | |
## agent container name | |
## | |
name: agent |
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
apiVersion: kops/v1alpha2 | |
kind: Cluster | |
metadata: | |
creationTimestamp: 2018-06-13T17:45:29Z | |
name: k8s-sbx.avenuecode.io | |
spec: | |
api: | |
dns: {} | |
authorization: | |
rbac: {} |
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
hosts=(host1 host2) | |
for host in "${hosts[@]}" | |
do | |
ssh-copy-id -i ~/.ssh/id_rsa.pub a_bvale@$host | |
done |
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
psql -h 127.0.0.1 -p 5432 -U postgres acdc_development < acdc_production.sql |
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
# Run this query | |
SELECT pg_terminate_backend(pg_stat_activity.pid) | |
FROM pg_stat_activity | |
WHERE pg_stat_activity.datname = 'target_db' | |
AND pid <> pg_backend_pid(); | |
DROP DATABASE target_db; |
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
java -Djavax.net.ssl.trustStore=frontend_epsKeystore_fugazi.jks -jar java-keystore-test-0.0.1.jar https://ecinventqark1v.wsgc.com:49184/loyalty/v1/loyaltyAccounts?phone=19164754536 | |
EPS: /apps/tomcat/conf/frontend_epsKeystore_fugazi.jks | |
Loyalty: /apps/tomcat/conf/frontend_keystore.jks | |
password | |
ecinvent-qa-rk1v.wsgc.com |
NewerOlder