Skip to content

Instantly share code, notes, and snippets.

@ii0
ii0 / 验证中国身份证 前6位对应地区码
Created June 27, 2025 06:11 — forked from mayufo/验证中国身份证 前6位对应地区码
验证中国身份证 前6位对应地区码
var GB2260 = {
"110000": "北京市",
"110100": "北京市市辖区",
"110101": "北京市东城区",
"110102": "北京市西城区",
"110103": "北京市崇文区",
"110104": "北京市宣武区",
"110105": "北京市朝阳区",
"110106": "北京市丰台区",
"110107": "北京市石景山区",
@ii0
ii0 / Guide.md
Created May 30, 2025 08:41 — forked from wklchris/Guide.md
Windows 免密码 SSH 连接指南

Windows 免密码 SSH 连接指南

以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。

  • 需要 Windows 10 或者更高的系统版本,以确认 OpenSSH 组件的安装。
  • 不需要安装第三方 SSH 软件。

目录:

@ii0
ii0 / ubuntu 引导项修复
Created March 24, 2025 00:59 — forked from xiaoysh8/ubuntu 引导项修复
ubuntu 引导项修复
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 {
@ii0
ii0 / AndroidManifest.xml
Created August 14, 2023 01:01
Start App on Boot Tutorial
<?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"
@ii0
ii0 / sshKeyGen.py
Created July 7, 2023 08:02 — forked from oliv2915/sshKeyGen.py
Python script that uses ssh-keygen and ssh-copy-id to create SSH keys
'''
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
@ii0
ii0 / sshKeyGen.py
Created July 7, 2023 04:17 — forked from hugobarzano/sshKeyGen.py
Python script that uses ssh-keygen and ssh-copy-id to create SSH keys
'''
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
@ii0
ii0 / import_key.py
Created May 31, 2023 00:45 — forked from mihow/import_key.py
Import existing PEM file as EC2 Key Pair with boto3 & paramiko
import os
import base64
import struct
import boto3
import paramiko
from paramiko.util import deflate_long
PEM_FILEPATH = '~/.ssh/test-key.pem'
@ii0
ii0 / install_ec2.sh
Created May 6, 2023 03:04 — forked from arttuladhar/install_ec2.sh
Installing tmux on EC2
# 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
@ii0
ii0 / install-tmux.sh
Created May 6, 2023 03:03 — forked from muralisc/install-tmux.sh
Install tmux 3.0a on Amazon Linux 2 / rhel /centos
# 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