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 a basic example of using SOCKS. | |
| From the computer you want to browse on you'll make an ssh connection to the computer you want to browse from. | |
| In this example it'll be my laptop connecting to my desktop. | |
| Run: ssh -D <port, I use 10000> <user>@<hostname of desktop> | |
| Now, in a browser you don't normally use (I'm using firefox), go to network proxy. | |
| Set Manual porxy configuration |
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
| ./test_args.sh "one two" three | |
| with $* | |
| ["one", "two", "three"] | |
| with "$@" | |
| ["one two", "three"] |
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
| pushd . | |
| FILES=$(find test -type f -path "*$1*"|tr '\n' ' ') | |
| echo $FILES | |
| bundle exec ruby -Itest $FILES | |
| popd |
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
| # create a new organization $MYORG | |
| org = Organization.find_by_name($MYORG) | |
| hosts = [] | |
| 50000.times { hosts << { name: SecureRandom.uuid, organization_id: org.id } } | |
| host_ids = ::Host::Managed.import(hosts, validate: false).ids | |
| facets = host_ids.map { |id| { host_id: id } } | |
| facet_ids = Katello::Host::SubscriptionFacet.import(facets, validate: false).ids |
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({ |
OlderNewer