I recently had to remove all traces of a file from a GIT repository.
First clone the repository:
git clone ssh://[email protected]/home/repositories/codebase codebase
I recently had to remove all traces of a file from a GIT repository.
First clone the repository:
git clone ssh://[email protected]/home/repositories/codebase codebase
| from sklearn.ensemble import GradientBoostingRegressor | |
| from sklearn.metrics import mean_squared_error | |
| custom_gbm = CustomGradientBoostingRegressor( | |
| n_estimators=20, | |
| learning_rate=0.1, | |
| max_depth=1 | |
| ) | |
| custom_gbm.fit(x, y) | |
| custom_gbm_rmse = mean_squared_error(y, custom_gbm.predict(x), squared=False) |
| class CustomGradientBoostingRegressor: | |
| def __init__(self, learning_rate, n_estimators, max_depth=1): | |
| self.learning_rate = learning_rate | |
| self.n_estimators = n_estimators | |
| self.max_depth = max_depth | |
| self.trees = [] | |
| def fit(self, X, y): | |
| #!/bin/bash | |
| # | |
| # pcap2wav | |
| # Original Author: Michael Collins <[email protected]> | |
| #Standard disclaimer: batteries not included, your mileage may vary... | |
| # Updated by Avi Marcus <[email protected]> | |
| # | |
| # Accepts arg of pcap file w/only 2 RTP streams | |
| # Creates a .<codec> file and a .wav file | |
| # For codecs other than PCMA and PCMU the script calls fs_cli and does a little recording to create the wav file(s) |
| ########## | |
| # Tweaked Win10 Initial Setup Script | |
| # Primary Author: Disassembler <[email protected]> | |
| # Modified by: alirobe <[email protected]> based on my personal preferences. | |
| # Version: 2.20.2, 2018-09-14 | |
| # Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
| # Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
| # Tweak difference: | |
| # | |
| # @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
| :: | |
| ::####################################################################### | |
| :: | |
| :: Change file associations to protect against common ransomware attacks | |
| :: Note that if you legitimately use these extensions, like .bat, you will now need to execute them manually from cmd or powershell | |
| :: Alternatively, you can right-click on them and hit 'Run as Administrator' but ensure it's a script you want to run :) | |
| :: --------------------- | |
| ftype htafile="%SystemRoot%\system32\NOTEPAD.EXE" "%1" | |
| ftype WSHFile="%SystemRoot%\system32\NOTEPAD.EXE" "%1" | |
| ftype batfile="%SystemRoot%\system32\NOTEPAD.EXE" "%1" |
To give false DNS responses from userland we need to handle different type of syscalls : gethostbyname(), gethostbyname2(), getaddrinfo(), getnameinfo(), etc.
To cover all these cases, and to prevent leaks to real dns servers, we will use two libraries : libresolv_wrapper and libnss_wrapper.
Install resolv_wrapper and nss_wrapper, either from sources or from your favorite Linux distribution.
| #!/bin/bash | |
| wget https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip | |
| unzip rtl8812AU_8821AU_linux-master.zip -x rtl8812AU_8821AU_linux-master | |
| cd rtl8812AU_8821AU_linux-master | |
| make | |
| sudo make install | |
| sudo modprobe rtl8812au | |
| sudo apt-get update | |
| sudo apt-get install dkms | |
| sudo cp -R . /usr/src/rtl8812AU_8821AU_linux-1.0 |
| ββββββββββββββββββββββββββββββββββββββ | |
| *** Initial setup before Ambari setup *** | |
| ββββββββββββββββββββββββββββββββββββββ | |
| OS checks: | |
| yum install wget |
| #/bin/bash | |
| ########################################################## | |
| ### INTRODUCTION | |
| ########################################################## | |
| : ' | |
| Install and configure R (Redis) + ELK server from scratch on CentOS 6.5. | |
| * Logstash version 1.4.2 | |
| * Elasticsearch version 1.3.2 |