Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block grx7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
grx7 / gist:dcd422ca5e09f608100447326862b363
Created Dec 5, 2018 — forked from adamstac/gist:7462202
Install and configure Sendmail on Ubuntu
View gist:dcd422ca5e09f608100447326862b363

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
grx7 /
Created Sep 18, 2018 — forked from ziadoz/
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# Versions
grx7 /
Created May 4, 2018 — forked from tckb/
Small bash script for notifying the internet connection. Raises a notification when connection is lost.
# Author: tckb<>
# Ping notification using terminal- notifier; for OsX
# Usuage: ./ <check_freq_seconds> &
rm $HOME/.np_click 2>/dev/null
if [ -z ${1} ]
freq=5 #check every 5 seconds
grx7 /
Created May 3, 2018 — forked from greencoder/
SKLearn Linear Regression Stock Price Prediction
from __future__ import print_function
import numpy as np
import pandas as pd
import talib as ta
import pandas_datareader as web
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import Ridge
from sklearn.model_selection import cross_val_score
grx7 /
Created May 2, 2018 — forked from tartakynov/
Fourier Extrapolation in Python
import numpy as np
import pylab as pl
from numpy import fft
def fourierExtrapolation(x, n_predict):
n = x.size
n_harm = 10 # number of harmonics in model
t = np.arange(0, n)
p = np.polyfit(t, x, 1) # find linear trend in x
x_notrend = x - p[0] * t # detrended x
You can’t perform that action at this time.