Skip to content

Instantly share code, notes, and snippets.

@carlos-teles
carlos-teles / install_zabbix_on_solaris.sh
Created January 14, 2025 13:27 — forked from CHERTS/install_zabbix_on_solaris.sh
How to install Zabbix-agent on Solaris 10 & 11
# Run this commands from user root
mkdir zabbix-agent && cd zabbix-agent
wget https://github.com/CHERTS/zabbix_44x_next/releases/download/v4.4.11/zabbix_agent-4.4.11-solaris-11.4-amd64-openssl.tar.gz
tar -vzxf zabbix_agent-4.4.11-solaris-11.4-amd64-openssl.tar.gz
cp bin/zabbix_* /usr/bin/
cp sbin/zabbix* /usr/sbin/
mkdir /etc/zabbix/
cp conf/zabbix_agentd.conf /etc/zabbix/
chmod -R 755 /etc/zabbix/
@carlos-teles
carlos-teles / Smart HTTP Git and CGIT on Nginx server with Auth on push
Created October 8, 2024 01:40 — forked from rtkay123/Smart HTTP Git and CGIT on Nginx server with Auth on push
Installing Git and Cgit to Debian NGINX server (with smart http and authentication on push)
# Just some notes on enabling smart http with nginx as well as authentication on push for repos
# install git, cgit and apache2-utils (for authentication)
apt install git cgit apache2-utils fcgiwrap
# create a git user
adduser git
su git
cd
mkdir .ssh && chmod 700 .ssh
touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@carlos-teles
carlos-teles / ruby proxy
Created February 20, 2024 12:02 — forked from gmic/ruby proxy
Ruby: install gems behind a proxy
gem install --http-proxy http://user:[email protected]:8080 bundler
@carlos-teles
carlos-teles / Oracle Instant Client on Debian or Ubuntu
Created September 13, 2023 18:43 — forked from phartenfeller/Oracle Instant Client on Debian or Ubuntu
Install an oracle instant client on a Debian or Ubuntu linux
apt-get install -y libaio1 alien
# Change version based on https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html
# Example alternative: http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.5-basiclite-19.5.0.0.0-1.x86_64.rpm
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm
rm -f oracle-instantclient*.rpm
# Optionally install SQLPlus
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23