install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
# Source: https://gist.github.com/820aecf0799d679d9082eef00d07b515 | |
############################################################################# | |
# Bitnami Sealed Secrets # | |
# How To Store Kubernetes Secrets In Git Repositories Without Getting Fired # | |
# https://youtu.be/xd2QoV6GJlc # | |
############################################################################# | |
# Referenced videos: | |
# - What Is GitOps And Why Do We Want It?: https://youtu.be/qwyRJlmG5ew |
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
{ | |
ethereum { | |
smartContractCalls(options: {desc: "block.height", limit: 10}, smartContractMethod: {is: "Contract Creation"}, smartContractType: {is: Token}) { | |
block { | |
height | |
timestamp { | |
time | |
} | |
} | |
smartContract { |
for day of writing, there is a problem with building by dkms this package xtables-addons-common so wehave to install this from source
query ($network: EthereumNetwork!, | |
$s_addresses: [String!], | |
$e_addresses: [String!] | |
) | |
{ | |
ethereum(network: $network) { | |
address1: address(address: {in: $s_addresses}) { | |
balances(currency: {is: "0x55d398326f99059ff775485246999027b3197955"}) { | |
currency { | |
name |
DOCKER_BUILDKIT=0 docker build . | |
... | |
docker run -it --rm 638adc3fd0fa sh |
Tereminal 1: | |
socat TCP-L:12345,fork,reuseaddr EXEC:'sqlite3 /home/user/sources/test.db',pty | |
Terminal 2: | |
telnet localhost 12345 | |
Trying 127.0.0.1... | |
Connected to localhost. | |
Escape character is '^]'. | |
SQLite version 3.31.1 2020-01-27 19:55:54 | |
Enter ".help" for usage hints. |
# Vagrant With Windows, WSL2 and Hyper-V | |
To say getting this configuration working is a pain in the ass is an understatement. However, once it is working correctly you gain access to tools like Ansible and full performance VMs inside Windows. This guide covers the steps I followed to get things working correctly with this configuration. It is possible that something may not work for you however I have been able to reproduce this success on two Windows 11 Pro machines and expect this to work for others. | |
This guide assumes basic knowledge of Windows and Linux systems and how Vagrant operates. Due to the difficulty of setting this up you may need to do some additional troubleshooting | |
## Requirements | |
* Windows Professional - Hyper-V can only be installed on Windows Professional systems or higher | |
* WSL2 - Due to the massive differences between WSL1 and WSL2 this guide will only cover support for WSL2 | |
* CPU Virtualization - While the vast majority of modern CPUs support virtualization you may need to enable it in |
import openai | |
import nltk | |
nltk.download('punkt') | |
openai.api_key = "XXXXXXXX" | |
def split_sentences(text, max_length): | |
""" | |
splitting text into chunks by sentences, not exceeding a specified maximum . |
# If docker client is running on different host than docker daemon the bind mount is likely looking for folder mount on the host where daemon instead of local | |
export DOCKER_HOST=tcp://REMOTE:2375 | |
docker volume create data-volume | |
docker create -v data-volume:/data --name helper alpine true | |
docker cp . helper:/data | |
docker rm helper | |
docker run --rm -it -v data-volume:/data alpine sh |