以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。
- 需要 Windows 10 或者更高的系统版本,以确认 OpenSSH 组件的安装。
- 不需要安装第三方 SSH 软件。
目录:
var GB2260 = { | |
"110000": "北京市", | |
"110100": "北京市市辖区", | |
"110101": "北京市东城区", | |
"110102": "北京市西城区", | |
"110103": "北京市崇文区", | |
"110104": "北京市宣武区", | |
"110105": "北京市朝阳区", | |
"110106": "北京市丰台区", | |
"110107": "北京市石景山区", |
以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。
目录:
ubuntu 引导项修复 | |
最近ubuntu+win10双系统重装了windows系统,ubuntu引导项丢失了,记录下修复方法: | |
1、制作一个同版本的ubuntu启动盘,选 try ubuntu; | |
2、打开终端,添加 boot-repair 源(需连网) | |
sudo add-apt-repository ppa:yannubuntu/boot-repair |
import javax.crypto.Cipher; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Arrays; | |
public class PasswordChecker { |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.codinginflow.onbootreceiverexample"> | |
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
''' | |
Author: Brian Oliver II | |
Instagram: bolo_ne3 | |
License: | |
MIT License | |
Copyright (c) 2016 Brian Oliver II | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
''' | |
Author: Brian Oliver II | |
Instagram: bolo_ne3 | |
License: | |
MIT License | |
Copyright (c) 2016 Brian Oliver II | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
import os | |
import base64 | |
import struct | |
import boto3 | |
import paramiko | |
from paramiko.util import deflate_long | |
PEM_FILEPATH = '~/.ssh/test-key.pem' |
# Installing tmux on Amazon-EC2 | |
# If you don't have libevent install use wget to install the libevent and install | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz | |
tar zxf libevent-2.0.18-stable.tar.gz | |
sudo ./configure & sudo make install | |
# If you don't have curses install use yum to install the curses |
# Install tmux 3.0a on Centos | |
# install deps | |
sudo yum install -y gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
tar -xf libevent-2.1.11-stable.tar.gz | |
cd libevent-2.1.11-stable | |
./configure --prefix=/usr/local |