This file contains 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 | |
# @raycast.schemaVersion 1 | |
# @raycast.title Summarize Safari page | |
# @raycast.mode fullOutput | |
# | |
# Optional parameters: | |
# @raycast.icon ✨ | |
# | |
# @raycast.packageName Things |
This file contains 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
brew install hub | |
git clone [email protected]:username/reponame | |
cd reponame | |
hub release -f "%T (%S) %n" --include-drafts | grep " (draft)" | awk '{print $1}' | xargs -t -n1 hub release delete |
This file contains 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 | |
## Start and end months | |
MONTHS='1 2 3 4' | |
YEAR='2021' | |
### Downloading logs | |
echo "Making logs directory..." | |
mkdir -p logs && echo "...Success" |
This file contains 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
# Beware! This file is rewritten by htop when settings are changed in the interface. | |
# The parser is also very primitive, and not human-friendly. | |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=46 | |
sort_direction=1 | |
hide_threads=0 | |
hide_kernel_threads=0 | |
hide_userland_threads=0 | |
shadow_other_users=0 | |
show_thread_names=0 |
This file contains 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
gdb | |
(gdb) file /opt/ruby-2.2.3/bin/ruby | |
(gdb) attach [pid] | |
# output of the C backtrace goes to the gdb console | |
(gdb) eval "backtrace" | |
# output of the Ruby application backtrace below goes to ruby stdout (rails logger?) | |
(gdb) call rb_backtrace() | |
(gdb) continue |
This file contains 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 Enterprise Passenger | |
# https://www.phusionpassenger.com/library/install/standalone/install/enterprise/rubygems_rvm/#step-1:-download-and-install-your-license-key | |
unset HISTFILE | |
export TOKEN=545d1d5b9e8c426b1.......................514dc2cb8a9b77309c054a38c9 | |
gem source --add https://download:${TOKEN}@www.phusionpassenger.com/enterprise_gems/ | |
gem install passenger-enterprise-server --no-rdoc --no-ri | |
# Compiling agent | |
export PASSENGER_ROOT=`passenger-config --root` |
This file contains 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 | |
export LIBMEMCACHED_VERSION='1.0.18' | |
export PHPMEMCACHED_VERSION='2.2.0' | |
# Install dependencies | |
sudo apt update | |
sudo apt install -y memcached | |
sudo apt install -y build-essential libtool autoconf unzip wget git pkg-config |
This file contains 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
sudo apt install libjemalloc-dev | |
sudo su - deployer | |
cd /home/deployer/.rbenv/plugins/ruby-build && git pull && cd - | |
CONFIGURE_OPTS="--with-jemalloc" rbenv install 2.6.5 |
This file contains 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
aws s3 sync s3://SOURCE-BUCKET-NAME s3://DESTINATION-BUCKET-NAME --source-region SOURCE-REGION-NAME --region DESTINATION-REGION-NAME |
This file contains 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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
NewerOlder