This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import base64 | |
url = 'aHR0cDovL3d3dy5jaGFtcHN0dWR5LmNvbS8/cj1jaGFtcHN0dWR5Jm09bXlwYWdlJmE9ZG93biZmbmFtZT03MTI2L3dyaXRlLw==' | |
url = base64.b64decode(url) | |
for x in xrange(40): | |
dd = url + str(x) + ".pdf" | |
print(dd) | |
urllib.urlretrieve(dd, "C:\\Users\\Administrator\\Desktop\\test\\down\\" + str(x) + ".pdf") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# auto letsencrypt revoke with certbot-nginx | |
#remove | |
sudo service nginx stop | |
sudo add-apt-repository ppa:certbot/certbot -y | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get remove certbot -y | |
#sudo rm -rf letsencrypt | |
sudo apt-get remove letsencrypt -y | |
sudo apt-get purge certbot -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f | |
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" | |
cd %userprofile%\documents\ | |
attrib Default.rdp -s -h | |
del Default.rdp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-coding:utf-8-*- | |
from keras.datasets import boston_housing | |
from keras.models import Sequential | |
from keras.layers import Activation, Dense | |
from keras import optimizers | |
(X_train, y_train), (x_test, y_test) = boston_housing.load_data() | |
model = Sequential() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-coding: utf-8-*- | |
# Index | |
## 1. Data Import | |
## 2. Data Preprocessing | |
## 3. Data Analysis - RFM Index Calculation | |
import numpy as np | |
import pandas as pd | |
import datetime |
OlderNewer