Skip to content

Instantly share code, notes, and snippets.

View cyberbiosecurity's full-sized avatar
💭
cyberbiosecurity enjoyer

Vadim Smirnov cyberbiosecurity

💭
cyberbiosecurity enjoyer
View GitHub Profile
Support vector machines are a set of supervised learning algorithms that you can use for classification, regression and outlier detection purposes. SciKit-Learn has many classes for SVM usage, depending on your purpose. The one we'll be focusing on is Support Vector Classifier, SVC.
::hmm.bat
:: v.ht/hmm1
:: #### !!! Must have Notes folder in \Documents\
::create a file
@echo off
set tag=%1
::if "%tag%" == ""
setlocal
set t0=%time%
@echo off
::TEMP BLOCK
:: A block where temporary doskeys are stored,
::
:: ####################################
:: ######### ESC COLORS ##########
:: #########################################
::setlocal
::call :setESC
:: script url (gist) = v.ht/doskeys1
@echo off
::########################################
::BACKUP'N'Log DOSKEYS SUBROUTINE
set r0= %random%%random%
set r1= doskeys_%r0:~2,20%
echo %r1%.txt >> %userprofile%\Documents\cmdLog.txt
echo %time% %date% >> %userprofile%\Documents\cmdLog.txt
@powershell -NoProfile -ExecutionPolicy Unrestricted "%userprofile%\Documents\keyrate.ps1" %*
<# /*
How can I increase the key repeat rate beyond the OS's limit?
http://stackoverflow.com/a/11056655
*/ #>
Add-Type -Type @"
//"
using System;
using System.Runtime.InteropServices;
namespace MyPrivateKeyRateSettings {
:: SOURCE http://dandar3.blogspot.ru/2013/01/how-to-ntfs-compress-windows-winsxs.html
:: copypasted by vadik
:: before: 9.46 GB (10,168,741,888 bytes)
:: after: 7.20 GB (7,732,994,048 bytes)
:: RUN AS ADMIN
sc stop msiserver
sc stop TrustedInstaller
sc config msiserver start= disabled
sc config TrustedInstaller start= disabled
# =====================================================================
# Copyright 2017 Chocolatey Software, Inc, and the
# original authors/contributors from ChocolateyGallery
# Copyright 2011 - 2017 RealDimensions Software, LLC, and the
# original authors/contributors from ChocolateyGallery
# at https://github.com/chocolatey/chocolatey.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@cyberbiosecurity
cyberbiosecurity / mailer.py
Created November 25, 2017 03:17
python mail sender test
var1 = "[email protected]"
var2 = "HAHAHHAHA"
var3 = "[email protected]"
def mail1(var1,var2,var3):
import smtplib
fromaddr = var1
toaddrs = var3
msg = 'Test mail1'
username = var1
@cyberbiosecurity
cyberbiosecurity / RunAProxyOnAmazonEC2VPC.md
Created January 10, 2017 05:46 — forked from webinista/RunAProxyOnAmazonEC2VPC.md
Create a proxy server on an Amazon EC2 (VPC) instance

This will create a proxy server in whatever your availability zone your VPC is in. For me, that's us-east-1b. For you, that may be something different. Steps 10+ should more or less work regardless of your provider since those steps cover the setup and configuration of TinyProxy.

  1. Click the Launch Instance button.
  2. Choose Ubuntu Server 14.04 LTS (HVM), SSD Volume Type. This isn't strictly necessary. If you choose another OS, check its documentation for how to install new packages.
  3. On the Choose an Instance Type screen, select t2.micro. It's Free Tier eligible.
  4. Click the Next: ... buttons until you reach the Configure Security Group screen.
    • You may wish to reduce the amount of storage on the Add Storage screen. This is optional.
    • You may wish to add a tag on the Tag Instance screen. This is also optional.
  5. On the Configure Security Group screen:
  • Select Create a new security group.