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 { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk"; | |
| import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js"; | |
| const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com'; | |
| const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'; | |
| const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'; | |
| const SOL_MINT = 'So11111111111111111111111111111111111111112'; | |
| const SOL_DECIMALS = 9; | |
| const connection = new Connection(RPC_ENDPOINT); | 
  
    
      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 ruby | |
| require 'rubygems' | |
| require 'pp' | |
| require 'sndacs' | |
| SRC= '/home/backup/db/' | |
| BUCKET= 'muzik_backup' | |
| CONFIG ={ | |
| :access_key_id => '**', | |
| :secret_access_key => '**' | |
| } | 
  
    
      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
    
  
  
    
  | def list_uniq key | |
| size = Resque.redis.llen key | |
| arr = Resque.redis.lrange key,0,size | |
| arr.uniq.each do |val| | |
| Resque.redis.lrem key,0,val | |
| Resque.redis.rpush key,val | |
| end | |
| end |