Skip to content

Instantly share code, notes, and snippets.

View rpfilomeno's full-sized avatar
💭
For Hire

Roger Filomeno rpfilomeno

💭
For Hire
View GitHub Profile
@rpfilomeno
rpfilomeno / php-docker-ext
Created August 8, 2022 10:48 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@rpfilomeno
rpfilomeno / twitch_stream.sh
Created July 31, 2022 17:13 — forked from JPLeBreton/twitch_stream.sh
shell script for streaming to twitch.tv
#! /bin/bash
# from
# https://gist.github.com/3178130
# gist created by brodul
# modified for http://twitch.tv/jplebreton
# originaly from http://tinyurl.com/twitch-linux from taladan
# www.youtube.com/user/taladan
@rpfilomeno
rpfilomeno / WSL2-Ruby-Installation.md
Last active December 16, 2021 18:28
WSL2 Ruby Installation

Installation of required libraries

sudo apt-get update sudo apt-get upgrade -y ``

@rpfilomeno
rpfilomeno / ip_in_range.php
Created November 10, 2016 07:10 — forked from tott/ip_in_range.php
php check if IP is in given network range
/**
* Check if a given ip is in a network
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed
* @return boolean true if the ip is in this range / false if not.
*/
function ip_in_range( $ip, $range ) {
if ( strpos( $range, '/' ) == false ) {
$range .= '/32';
}
@rpfilomeno
rpfilomeno / curl-format.txt
Last active October 11, 2016 02:41
Timing Details With cURL
\n
============= HOST: ==========\n
\n
local_ip: %{local_ip}\n
local_port: %{local_port}\n
remote_ip: %{remote_ip}\n
remote_port: %{remote_port}\n
\n
======= CONNECTION: ==========\n
\n
@rpfilomeno
rpfilomeno / Resize Centos LVM partion on VMWare guest.txt
Last active November 10, 2015 09:18
Resize Centos LVM partion on VMWare guest
1. Add the Gparted CD ISO
2. Change VM Properties -> Options Tab -> Boot Options: Check Force BIOS Setup
3. Boot VM and edit BIOS boot order to CDROM First then Exit setup with Save to reboot
4. Allow VM to Boot GParted
5. ON Gparted, select LVM Partition with Lock Icon then select Partition menu -> Disable
6. Expand the said partition and Apply. Exit Gparted.
7. Run terminal on GParted
8. run "lvm lvdisplay" and take note of the /dev/ path of the partition needing expansion
9. run "lvextend –l +100%FREE /dev/[path]"
10. shutdown Gparted
Extract voice fingerprint from previous customer call recording and store it for future
comparisons when the customer calls again.
Application:
* Fraud detection - detect the person voice print is different from the identity provided
and raise flag for review or detect known fraudulent individuals in calls and alert the agent
to inquire for additional indentification challenges.
* Identification - provide agents with additional feedback for user's authenticity of
his/her claimed identity
@rpfilomeno
rpfilomeno / April-Tracker-List
Created April 30, 2015 16:09
P2P Tracker List
udp://open.demonii.com:1337
udp://tracker.coppersurfer.tk:6969
udp://tracker.leechers-paradise.org:6969
udp://exodus.desync.com:6969
http://tracker.yify-torrents.com/announce
@rpfilomeno
rpfilomeno / Find Optimal Load Average
Created March 12, 2015 15:31
Linux Performance Testing
# less /proc/cpuinfo | grep "physical id" | sort|uniq | wc -l
2
# less /proc/cpuinfo | grep "core id" | sort|uniq | wc -l
1
Optimal load average (100% utilization) = 2.0
(The "Red line" load average = 5.0 per processor)
# ~/.tmux.conf
# use UTF8
set -g utf8
set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)
set -g history-limit 30000