Skip to content

Instantly share code, notes, and snippets.

View imiskolee's full-sized avatar

Misko Lee imiskolee

  • Noise Labs
  • Shen Zhen China
View GitHub Profile
@imiskolee
imiskolee / merge_two_tables.sh
Last active March 20, 2019 03:09
MySQL Merge Two Same Struct Tables
#!/bin/bash
database=""
from_table=""
dest_table=""
batch_size=5000
last_id=""
user=""
pwd=""
std output:
initiating IKE_SA net-net[2] to 4.*.*.*
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(HASH_ALG) ]
sending packet: from 159.*.*.*[500] to 4.*.*.*[500] (316 bytes)
received packet: from 4.*.*.*[500] to 159.*.*.*[500] (337 bytes)
parsed IKE_SA_INIT response 0 [ SA KE No CERTREQ N(NATD_S_IP) N(NATD_D_IP) V ]
received unknown vendor ID: 2a:67:75:d0:ad:2a:a7:88:7c:33:fe:1d:68:ba:f3:08:96:6f:00:01
received 1 cert requests for an unknown ca
authentication of '159.*.*.*' (myself) with pre-shared key
package main
import (
"bufio"
"errors"
"fmt"
"os"
"strconv"
"strings"
)
<?php
/***
* =================================================================== *
* -------------------- About Perfect Num Analytize ------------------ *
* =================================================================== *
* Author : Misko_Lee(imiskolee#at#gmail.com)
* Create At : 2015-09-21 22:17
***/
/***
* =================================================================== *
* -------------------- About Perfect Num Analytize ------------------ *
* =================================================================== *
* Author : Misko_Lee(imiskolee#at#gmail.com)
* Create At : 2015-09-21 22:17
***/
#include <stdlib.h>
#include <stdio.h>