- Systems today are generally distributed, both in-house and third-party systems
- Stream processing is batch processing but in smaller increments, it isn't real-time, but is quick
- Project, work as pre and post work
- Reliability
- Scalability
- Maintainability
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 ( | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { | |
| switch os.Args[1] { |
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
| // 1. Go to https://auth.quicknode.com/signup | |
| // 2. Spin up ethereum, sepolia, or polygon endpoint and add Token/NFT RPC API v2 add-on | |
| // 3. npm/yarn install @quicknode/sdk in typescript or javascript project | |
| // 4. Copy and paste code in project and replace endpointUrl and wallet value below | |
| // 5. profit! | |
| import Core from "@quicknode/sdk/core"; | |
| (async () => { | |
| const core = new Core({ |
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
| data:text/html,<html> <script type="module"> import { API } from 'https://esm.sh/@quicknode/sdk'; const qn = new API(); document.body.innerText = (JSON.stringify(await qn.tokens.getBalancesByWallet({ address: "quicknode.eth" }))); </script></html> |
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
| rm -rfv /etc/foreman-proxy/*ssl* | |
| rm -rfv /etc/foreman/old-certs | |
| rm -rfv /etc/foreman/*.pem | |
| rm -rfv /var/lib/puppet/ssl | |
| rm -rfv /root/ssl-build | |
| foreman-installer -v --certs-regenerate-ca=true --certs-regenerate=true \ | |
| --foreman-foreman-url "https://bread.usersys.redhat.com" \ | |
| --foreman-servername sat6.example.com \ | |
| --certs-ca-common-name sat6.example.com \ |
go to node_modules/webpack-dev-server/lib/Server.js in ~/foreman
around line 496 change protocols: ['h2', 'http/1.1'] to protocols: ['http/1.1'] (remove h2 from the array)
start dev server
NOTE: this will be overwritten when you npm install again
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/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js b/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js | |
| index 6b7e4eb..bb6b6f6 100644 | |
| --- a/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js | |
| +++ b/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js | |
| @@ -37,7 +37,6 @@ import RepoIcon from './RepoIcon'; | |
| import SelectableDropdown from '../../../../components/SelectableDropdown'; | |
| import { capitalize } from '../../../../utils/helpers'; | |
| - | |
| const allRepositories = 'All repositories'; |
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/bash | |
| subscription-manager register | |
| subscription-manager attach --auto | |
| yum install -y vim git | |
| git clone https://github.com/RedHatSatellite/satellite-clone | |
| cd satellite-clone/ | |
| chmod -R 755 helpers/ | |
| # Change RHEL version as needed | |
| sed -ie 's/RHEL_MAJOR_VERSION="0"/RHEL_MAJOR_VERSION="7"/g' ./helpers/control_node_setup.sh | |
| ./helpers/control_node_setup.sh |
- B+ trees are always best, but ISAM came first, ISAM is a simpler way to start learning
- Each node is a page on disk and has a pointer to the related parts, 'block 7'
- B+ tree, only leaf nodes matter, the rest are to direct traffic
- binary search is really difficult, it is reads on disk, so instead of this we use an "index" file that stores key values with pointers to pages
- B+ tree is height-balanced.
- each node has 50% pointers on them because pages will be split in half to make space
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
| error | |
| ``` | |
| 2020-08-10 14:51:58 UTC ERROR: subquery has too many columns at character 79 | |
| 2020-08-10 14:51:58 UTC STATEMENT: SELECT COUNT(*) FROM "katello_repositories" WHERE "katello_repositories"."id" IN (SELECT DISTINCT katello_repositories.*, | |
| CASE | |
| WHEN katello_content_view_repositories.content_view_id = 4 THEN 1 | |
| ELSE 0 | |
| END AS "added_to_content_view" | |
| , "katello_repositories"."id" FROM katello_repositories LEFT JOIN katello_content_view_repositories ON (katello_repositories.id = katello_content_view_repositories.repository_id) LEFT JOIN katello_content_views ON (katello_content_view_repositories.content_view_id = katello_content_views.id) WHERE ( katello_content_views.id = 4 OR katello_content_views.id IS NULL | |
| ) ORDER BY added_to_content_view DESC, katello_repositories.id |
NewerOlder