Skip to content

Instantly share code, notes, and snippets.

View mtairu's full-sized avatar

Mo. Atairu mtairu

View GitHub Profile
@mtairu
mtairu / tutorial_dpcca_computation.ipynb
Created October 28, 2020 04:32 — forked from jaimeide/tutorial_dpcca_computation.ipynb
Python implementation of the Detrended Partial Cross-Correlation Analysis (DPCCA) coefficient
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mtairu
mtairu / mautic
Created May 15, 2019 18:45
Mautic Notes: Monasor Atairu
Gmail and Yandex have documented issues with bounces/return paths.
Gmail rewrites the returnpath, while yandex rejects "plus addresses".
This is a solution for custom domains using Yandex.Domains
- Create a folder called bounces
- Under monitored inboxes, enter your sender email and details, authenticate
and choose the bounces folder. Mautic has an issue saving this folder.
After you save the change, Mautic will indicate their is an issue, if this happens
edit /var/www/mautic/app/config/local.php; find the line for EmailBundle_bounces;
change override_settings to 1 and folder to bounces.
@mtairu
mtairu / gitprinciples.txt
Created February 19, 2019 04:52
GIT in Principle, Workflows and Best Practises.
As to methods, there maybe a million and then some, but principles are few. The man who grasps principles can successfully select his methods. - Emerson.
These are links to concepts/paradigm's/practises regarding GIT version control, that should be considered/ or identified as principles.
A successful Git branching model by Vincent Dresden @ http://archive.is/4M9QW
How to write a Git commit message by Chris Beams @ http://archive.is/J8gVG
Git workflow and best practises by Piwigo @ http://archive.is/cy64X
@mtairu
mtairu / gist:aa835d9f59e27e81b011e40d06c94b49
Created August 25, 2018 06:59
Install Pycurl with SSL Support
Includes solutions to the following errors:
- src/pycurl.h:164:28: fatal error: openssl/ssl.h: No such file or directory
- src/pycurl.h:4:20: fatal error: Python.h: No such file or directory
- pycurl segmentation fault
- Start by cloning the repository.
- Make sure you can do; sudo python <command>
Install the following:
- libcurl4-openssl-dev
@mtairu
mtairu / pyjwt.py
Last active August 8, 2018 20:20
RS256 Token Validation & Decoding using Public Key Not Working "ValueError: Could not deserialize key data."
"""Solution for decoding and verifying Amazon Cognito (JWK) issued tokens.
- NodeJS (jwk-to-pem) to convert jwk to pem
- PyJWT to decode and verify an access token
- pm install jwk-to-pem
- pipenv install pyjwt
- pipenv install cryptography
"""
@mtairu
mtairu / sources.list
Created June 23, 2018 17:03 — forked from ksysctl/sources.list
Debian source list
# Testing
deb http://ftp.us.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.us.debian.org/debian/ testing main contrib non-free
# Stable
# deb http://ftp.us.debian.org/debian/ stable main contrib non-free
# deb-src http://ftp.us.debian.org/debian/ stable main contrib non-free
# Security
deb http://security.debian.org/ testing/updates main contrib non-free
@mtairu
mtairu / all_aws_lambda_modules.txt
Created June 11, 2018 23:50 — forked from gene1wood/all_aws_lambda_modules_python.md
AWS Lambda function to list all available Python modules and post the list to Pastebin
# module list (generated by listmodules.py)
#
# timestamp='20160226T200954Z'
# sys.version='2.7.10 (default, Dec 8 2015, 18:25:23) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]'
# sys.platform='linux2'
# platform='Linux-4.1.13-19.31.amzn1.x86_64-x86_64-with-glibc2.2.5'
#
BaseHTTPServer
Bastion
CDROM
#
## aria2 config
#
# man page = http://aria2.sourceforge.net/manual/en/html/aria2c.html
# file path = $HOME/.aria2/aria2.conf
# Download Directory: specify the directory all files will be downloaded to.
# When this directive is commented out, aria2 will download the files to the
# current directory where you execute the aria2 binary.
#dir=/some/download/
@mtairu
mtairu / check domain ext
Created August 25, 2017 09:28
use sockets to determine domain availabity
bar = pyprind.ProgBar(len(df.host.tolist()))
def check_extensions(domain):
ext_taken = {'de':'','uk':'','org':'','net':'','ca':'','info':'','eu':'',
'fr':'','es':'','nl':'','biz':'','com':'','host':'','be':'','it':'',
'se':'','no':'','jp':'','fi':'','ie':''}
de_ = domain + '.de'
uk_ = domain + '.co.uk'
org_ = domain + '.org'
net_ = domain + '.net'
apt-get install npm
apt-get install nodejs-legacy
npm install phantomjs-prebuilt
apt-get install libfontconfig
phantomjs -v