Skip to content

Instantly share code, notes, and snippets.

Avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / Add RTM and metrics repository for CentOS
Created Oct 2, 2020
Add RTM and metrics repository for CentOS
View Add RTM and metrics repository for CentOS
vi /etc/yum.repos.d/ovh-rtm.repo
[rtm]
name=OVH RTM RHEL/ CentOS $releasever - $basearch
baseurl=http://last.public.ovh.rtm.snap.mirrors.ovh.net/centos/$releasever/$basearch/Packages/
enabled=1
repo_gpgcheck=1
gpgkey=http://last.public.ovh.rtm.snap.mirrors.ovh.net/ovh_rtm.pub
[metrics]
View CakePHP
The answer is that there are 3 different .htaccess files:
/var/www/app/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
View MISP
You can reset the password via the command line by using:
/var/www/MISP/app/Console/cake Password [email] [password]
View sql misp
-- --------------------------------------------------------
--
-- Table structure for table `admin_settings`
--
CREATE TABLE IF NOT EXISTS `admin_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`setting` varchar(255) COLLATE utf8_bin NOT NULL,
`value` text COLLATE utf8_bin NOT NULL,
View CMAKE
add_custom_target(generate_exports
COMMAND ${CMAKE_COMMAND}
-DAOM_ROOT="${AOM_ROOT}"
-DAOM_CONFIG_DIR="${AOM_CONFIG_DIR}"
-DAOM_TARGET_SYSTEM=${AOM_TARGET_SYSTEM}
-DAOM_SYM_FILE="${aom_sym_file}"
-DAOM_MSVC=${MSVC}
-DAOM_XCODE=${XCODE}
-DCONFIG_NAME=$<CONFIG>
-DCONFIG_AV1_DECODER=${CONFIG_AV1_DECODER}
@WganMe
WganMe / -version
Last active Aug 29, 2020
FFmpeg RedHat 7
View -version
[root@server ffmpeg]# ffmpeg -version
ffmpeg version n4.3.1-6-g0a012a5338 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/root/FF --bindir=/root/bin --datadir=/root/FF/share/ffmpeg --libdir=/root/FF/lib64 --mandir=/root/FF/share/man --extra-cflags=-fPIC --pkg-config=/usr/bin/pkg-config --target-os=linux --extra-libs='-lxml2 -ldl' --enable-rpath --enable-pic --enable-pthreads --enable-shared --enable-network --enable-ffmpeg --enable-ffplay --enable-fontconfig --enable-ffprobe --enable-gpl --enable-nonfree --enable-libx264 --enable-encoder=libx264 --enable-decoder=h264 --enable-encoder=h263 --enable-encoder=h263p --enable-decoder=h263 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-crystalhd --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libop
@WganMe
WganMe / Twilio Asterisk Secure Trunking HOWTO.md
Created Aug 8, 2020 — forked from ianthetechie/Twilio Asterisk Secure Trunking HOWTO.md
A short guide on how to set up an encrypted VoIP system using Twilio and Asterisk.
View Twilio Asterisk Secure Trunking HOWTO.md

Twilio Asterisk Secure Trunking HOWTO

This is a short guide on how to set up an encrypted VoIP system using Twilio and Asterisk. I was a little annoyed that just about everything these days still uses unencrypted RTP for media (though just about everyone supports SIP over TLS). So I spent a weekend looking at options, and settled on a totally overkill solution involving Twilio's secure trunking to an Asterisk PBX. While all bets are off once it hits the PSTN, at least you won't be blasting your conversations over the internet in clear text.

@WganMe
WganMe / woocommerce variation name color
Last active Jul 20, 2020
woocommerce variation name color
View woocommerce variation name color
.woocommerce .variations_form label {font-family: 'Montserrat', sans-serif;font-size:16px;color:#808080;}
.woocommerce .variations_form label {font-family: 'Montserrat', sans-serif;font-size:18px;color:#ffd900;}
View 41
iptables -I INPUT -p 41 -j ACCEPT
iptables -I OUTPUT -p 41 -j ACCEPT
View pecl
https://pecl.php.net/get/crypto-0.3.1.tgz
https://pecl.php.net/get/ssh2-1.2.tgz
apcu
imagick
libsodium
mcrypt
oauth
redis