sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart| @ECHO OFF&PUSHD %~DP0 | |
| TITLE title KMS_Activation for Windows 10 | |
| Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL | |
| Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行!&&Pause >nul&&Exit) | |
| Rd "%WinDir%\System32\test_permissions" 2>NUL | |
| SetLocal EnableDelayedExpansion | |
| ::修改下面的内容,定义选择想使用的KMS服务器。如果定义了多次,最后的有效 | |
| ::set KMS_Sev=192.168.2.8 | |
| ::set KMS_Sev=1.2.7.0 |
| #!/usr/bin/env python | |
| # coding=utf8 | |
| # author=evi1m0 | |
| # website=linux.im | |
| ''' | |
| 12306 Captcha Picture: | |
| author: Evi1m0@20150316 | |
| 1. Download Captcha | |
| 2. Pic Conver Text |
| #!/bin/bash | |
| checkIfMySQLTableExists() { | |
| table=$1; | |
| if [ $(mysql -N -s -u root -p -e \ | |
| "select count(*) from information_schema.tables where \ | |
| table_schema='${table}' and table_name='${DB}';") -eq 1 ]; then | |
| echo "Table ${table} exists! ..."; | |
| else | |
| echo "Table ${table} does not exist! ..." |
| curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d ' | |
| { | |
| "email" : "[email protected]", | |
| "name" : "John Smith", | |
| "username" : "@john" | |
| } | |
| ' | |
| curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d ' | |
| { |
| // | |
| // AMScanViewController.h | |
| // | |
| // | |
| // Created by Alexander Mack on 11.10.13. | |
| // Copyright (c) 2013 ama-dev.com. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
| #import <AVFoundation/AVFoundation.h> |
| # one way w/o web interface: | |
| # java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf | |
| # another with a web interface(http://localhost:9292) : | |
| # java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf -- web --backend 'elasticsearch:///?local' | |
| # nc localhost 3333 < logfile | |
| # | |
| # When you are all done, you can delete the 'data' folder to delete the database. | |
| input { | |
| tcp { |
| #!/usr/bin/python | |
| # Filename s5.py | |
| # Python Dynamic Socks5 Proxy | |
| # Usage: python s5.py 1080 | |
| # Background Run: nohup python s5.py 1080 & | |
| # Email: [email protected] | |
| import socket, sys, select, SocketServer, struct, time | |
| class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass |