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 axios from "axios"; | |
import bs58check from "bs58check"; | |
// @ts-ignore | |
import TronWeb from "tronweb"; | |
// Create a cache to store processed transactions | |
const processedTxCache = new Set<string>(); | |
const SUNSWAP_ROUTER_ABI = [ | |
{ | |
inputs: [ |
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
/var/www/single-site.com/logs/*.log { | |
# daily: perform the rotation every day | |
daily | |
# rotate 14: remove the log files after 14 days | |
rotate 14 | |
# size 1M: only rotate logs that are a minimum of 1MB | |
size 1M | |
# compress: all rotated logs will also be compressed | |
compress | |
# compress: all rotated logs will also be compressed |
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 | |
# | |
# A bash script to download the latest list of CloudFlare IP address | |
# ranges to be used with Nginx for the purpose of displaying a | |
# visitor's real IP address | |
# | |
# Author: Eric Mathison - https://ericmathison.com | |
# |
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
# | |
# Author: Logic-32 | |
# | |
# IMPORTANT | |
# | |
# Please set jail.local's permission to 640 because it contains your CF API token. | |
# | |
# This action depends on curl. | |
# | |
# To get your Cloudflare API token: https://developers.cloudflare.com/api/tokens/create/ |
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
# | |
# Author: Logic-32 | |
# | |
# IMPORTANT | |
# | |
# Please set jail.local's permission to 640 because it contains your CF API token. | |
# | |
# This action depends on curl. | |
# | |
# To get your Cloudflare API token: https://developers.cloudflare.com/api/tokens/create/ |
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
#Since Ruby will run in the console you may want to use screen to keep the app running in the background once you disconnect. | |
#To do this first install screen | |
apt-get install screen | |
#Then start a new screen session | |
screen -S "My App" | |
#and run your app within the session | |
ruby myapp.rb |
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
-- Configure Timezones | |
sudo dpkg-reconfigure tzdata | |
--Configure NTP Synchronization | |
sudo apt-get update | |
sudo apt-get install ntp | |
--Load TimeZones | |
mysql_tzinfo_to_sql /usr/share/zoneinfo/|mysql -u root mysql -p |
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
#Ruby | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |