This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "net" | |
import "bufio" | |
import "io/ioutil" | |
import "time" | |
import "bytes" | |
import "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.symfix c:\symbols | |
.reload | |
.cordll -ve -u -l | |
.loadby sos clr | |
sxe ld:mscorlib | |
All stacktraces in every thread | |
~*e!clrstack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files (x86)\MySQL\MySQL Workbench 6.0 CE\mysqldump.exe" -u [username] -p[password] --host=[hostname] --default-character-set=utf8 [dbname] > dbname.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; | |
namespace CreateSite | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Threading; | |
namespace SimpleHttpServer | |
{ | |
public class SimpleHttpServer | |
{ | |
public static void Start() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ $project:{RequestedUrl:1,BodyInputs:1} }, | |
{ $unwind:"$BodyInputs" }, | |
{ $group : {_id:"$BodyInputs",RequestedUrl:{$push:"$RequestedUrl"}} } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start with db path: | |
mongod --dbpath c:\db | |
repair db after unexpected shutdown: | |
mongod --dbpath c:\db --repair | |
backup: | |
mongodump --out /data/backup/ | |
restore: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let k = murmur3_32("mqmqdpu".as_bytes(),0_u32); | |
println!("{:0>8t}",k); | |
println!("{:u}",k); | |
} | |
fn murmur3_32(key:&[u8],seed:u32)->u32{ | |
let c1:u32 = 0xcc9e2d51; |