Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / MISP
Created August 20, 2020 09:31
MISP
You can reset the password via the command line by using:
/var/www/MISP/app/Console/cake Password [email] [password]
@WganMe
WganMe / sql misp
Created August 19, 2020 16:01
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,
@WganMe
WganMe / CMAKE
Created August 11, 2020 02:02
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 August 29, 2020 07:01
FFmpeg RedHat 7
[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 August 8, 2020 05:17 — 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.

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 July 20, 2020 13:50
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;}
@WganMe
WganMe / 41
Created July 8, 2020 23:45
41
iptables -I INPUT -p 41 -j ACCEPT
iptables -I OUTPUT -p 41 -j ACCEPT
@WganMe
WganMe / pecl
Created June 23, 2020 18:02
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
@WganMe
WganMe / Iris.html
Created June 7, 2020 20:47
Iris.html
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>CNN_for_Iris</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2020-04-17"><meta name="DC.source" content="CNN_for_Iris.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:befo
@WganMe
WganMe / imagick magick
Created May 23, 2020 17:36
imagick magick
ln -s /usr/bin/magick /usr/bin/imagick