Skip to content

Instantly share code, notes, and snippets.

View aliartiza75's full-sized avatar
☠️
Developing

Irtiza Ali aliartiza75

☠️
Developing
View GitHub Profile
@aliartiza75
aliartiza75 / steps.txt
Created February 15, 2018 08:41
Steps to do after installing ubuntu
sudo apt-get update
sudo apt-get upgrade
sudo apt install byobu
@aliartiza75
aliartiza75 / securing python eval function
Created February 19, 2018 09:40
How to secure eval function
def evaluate_expression(expression):
"""
It evaluates whether a function is valid to be executed in or not
"""
invalid_params = ['*', ' *', '* ', ' * ', '/', ' /', '/ ', ' / ', '+', ' +', '+ ', ' + ', '-', ' -', '- ', ' - ', ' pow(', 'pow(', ' pow( ', 'pow(','rm ', ' rm ',
' rm', 'rm', ' exec(', 'exec(']
for item in invalid_params:
if item in expression:
return False
@aliartiza75
aliartiza75 / resources.txt
Last active April 15, 2018 21:42
AI Resources
http://www.deeplearningbook.org/
http://aiforanyone.com/
https://www.linkedin.com/pulse/beginners-guide-data-science-pipeline-shivam-panchal/
Google Resources for ML
https://ai.google/education#?modal_active=none
Spark Learning Resources:
https://github.com/awesome-spark/awesome-spark
@aliartiza75
aliartiza75 / pyResource.txt
Last active April 14, 2018 05:38
Python Resources
Useful python
https://usefulpython.com/blog/overview-how-to-build-this-website/
Cython tuts
http://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
http://pythoninformer.com/programming-techniques/functional-programming/
Unable to locate package language-pack-en
apt-get install -y locales locales-all
locale-gen en_US.UTF-8
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'.
"files.autoSave": "off",
// Controls the font size in pixels.
"editor.fontSize": 14,
// Controls the font family.
"editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
https://www.quora.com/What-coding-skills-are-required-to-land-a-job-at-Google-Facebook-or-Microsoft
@aliartiza75
aliartiza75 / tuts.txt
Created May 5, 2018 21:42
Notes for Using the Google Cloud SDK
This file contains the guidelines on how to use the gcloud utility.
Installation:
1) Download the tar file for the gcloud sdk.
2) Unzip it.
3) Move inside the uncompressed folder and run this command ./google-cloud-sdk/install.sh to start the installlation.
4) Follow the steps shown in the intstallation process
5) Once installed close the current terminal and open a new one to use the gcloud utility.
Usage:
https://hackernoon.com/a-beginners-guide-to-ipfs-20673fedd3f
@aliartiza75
aliartiza75 / Python virtualenv steps
Last active August 12, 2018 16:11
Process to create virtual env for python projects
* Install python virtual envuornment:
$ python3 -m pip install --user virtualenv
* Creating a virtualenv
$ python3 -m virtualenv env
* Activate virtual environment