Skip to content

Instantly share code, notes, and snippets.

@dikkatdeli
dikkatdeli / centos_daemontools.txt
Created May 15, 2021 16:24 — forked from toddlers/centos_daemontools.txt
Installing daemontools in centos
1. Install wget gcc and wget
yum install gcc wget
2. Create a folder setup and wget the source
mkdir -p /package
chmod 1755 /package
cd /package
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar -xzvf daemontools-0.76.tar.gz
rm daemontools-0.76.tar.gz

Proxying FiveM Connections using Nginx

As of server version 2377, support was added to FiveM to run a custom streaming proxy similar to cfx.re, but proxying the data connection (UDP) as well. This can be accomplished very easily with nginx acting as a proxy, and you can combine the caching proxy with it.

Requirements

  • Nginx 1.17+ (1.16 absolute minimum, guide tested on 1.17)
  • Server with reasonable network bandwidth (500mbps uplink strongly suggested)
  • FXserver version 2377 or later
  • SSL certificate for the domain you're using (highly recommended)
@dikkatdeli
dikkatdeli / google-analytics-data-events.js
Created March 10, 2020 13:38 — forked from kevinblake/google-analytics-data-events.js
Fire Google Analytics Events using data attributes for label, action and category fields
var googleDataEvents = {
pageTracker: null,
init: function (document) {
document.find("a[data-ga-label],area[data-ga-label]").click(this.trackLink);
},
trackLink: function (e) {
if (_gaq) {
e.preventDefault();
var l = $(this);
var label = l.attr("data-ga-label");
@dikkatdeli
dikkatdeli / esxi_trial_reset.sh
Created April 24, 2019 21:19 — forked from ziozzang/esxi_trial_reset.sh
Automated ESXi Trial Reset
echo "0 2 * * * rm -r /etc/vmware/license.cfg && cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg && /etc/init.d/vpxa restart" >> /var/spool/cron/crontabs/root
This file has been truncated, but you can view the full file.
*****************************************************
Downloading all required software for install routines.
(B*****************************************************
*************************************************
* Installing Development Tools
(B*************************************************
please wait for yum download and installs to complete.
yum installs in less verbose mode so final install status is only shown..
....
......
This file has been truncated, but you can view the full file.
*****************************************************
Downloading all required software for install routines.
(B*****************************************************
*************************************************
* Installing Development Tools
(B*************************************************
please wait for yum download and installs to complete.
yum installs in less verbose mode so final install status is only shown..
....
......