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
| upstream app { | |
| server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.app.com; | |
| rewrite ^/(.*) http://app.com/$1 permanent; | |
| } | |
| server { |
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
| set-option -g status on | |
| set-option -g status-left-length 80 | |
| set-option -g status-interval 2 | |
| set-option -g status-left '#(curl -k -L -s http://www.cricinfo.com/ci/engine/match/1031661.html | pup "title text{}" | cut -d "|" -f 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
| #!/bin/sh | |
| # Configuration | |
| SNAPSHOT_URL=https://osmosis.fra1.cdn.digitaloceanspaces.com/osmosis-1/snapshots/v25/osmosis-snapshot-202407310709-18675339.tar.lz4 | |
| OSMOSIS_HOME=$HOME/.osmosisd | |
| COSMOVISOR_SERVICE=cosmovisor | |
| # Stop the Cosmovisor service | |
| sudo systemctl stop $COSMOVISOR_SERVICE | |
| if [ $? -ne 0 ]; then |
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
| ################################ | |
| #!/usr/bin/env bash | |
| # File: twit_twurl.sh | |
| # Description: Tweet from the command line using twurl & OAuth | |
| # | |
| # Copyright 2010 George Ornbo (Shape Shed) | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at |
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
| // Setup | |
| pub const TICK_SPACING: u64 = 100; | |
| pub const SPREAD_FACTOR: &str = "1"; | |
| pub const BASE_DENOM: &str = "uosmo"; | |
| pub const QUOTE_DENOM: &str = "usdc"; | |
| gov.propose_and_execute( | |
| CreateConcentratedLiquidityPoolsProposal::TYPE_URL.to_string(), | |
| CreateConcentratedLiquidityPoolsProposal { | |
| title: "Create concentrated uosmo:usdc pool".to_string(), |
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
| #!/usr/bin/env sh | |
| # | |
| # A script to test | |
| # * the creation of a CW20 contract | |
| # * the creation of a CW4 contract | |
| # * the staking of CW20 tokens in the CW4 contract | |
| CW20_CONTRACT_NAME=cw20_base.wasm | |
| CW20_CONTRACT_URL=https://github.com/CosmWasm/cw-plus/releases/download/v0.13.4/cw20_base.wasm | |
| CW4_CONTRACT_NAME=cw4_stake.wasm |
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
| wasm.execute( | |
| &vault_address, | |
| &deposit_msg, | |
| &[Coin { | |
| amount: deposit_amount, | |
| denom: base_token.to_string(), | |
| }], | |
| &signer, | |
| ) | |
| .unwrap(); |
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
| #!/usr/bin/env bash | |
| BUCKET=$1 | |
| CWD=$(pwd) | |
| if [[ -n $1 ]]; then | |
| aws s3 sync s3://$BUCKET/cf-logs . | |
| cat *.gz > combined.log.gz | |
| find $CWD ! -name 'combined.log.gz' -name '*.gz' -type f -exec rm -f {} + | |
| gzip -d combined.log.gz |
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 generated configuration file | |
| # See the sshd(8) manpage for details | |
| # What ports, IPs and protocols we listen for | |
| Port 7654 | |
| # Use these options to restrict which interfaces/protocols sshd will bind to | |
| #ListenAddress :: | |
| #ListenAddress 0.0.0.0 | |
| Protocol 2 | |
| # HostKeys for protocol version 2 |
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
| #!/usr/bin/env bash | |
| shopt -s nullglob globstar | |
| typeit=0 | |
| if [[ $1 == "--type" ]]; then | |
| typeit=1 | |
| shift | |
| fi |
NewerOlder