Skip to content

Instantly share code, notes, and snippets.

View mindcont's full-sized avatar
🎯
Focusing

Apes mindcont

🎯
Focusing
View GitHub Profile
@mindcont
mindcont / ubuntu-remove-gui.md
Created May 20, 2017 01:43
ubuntu如何卸载图形界面

ubuntu如何卸载图形界面

方法

直接卸载界面

sudo apt-get remove unity

但是这样做依赖的包还在,而且万一以后要用到桌面又很麻烦了,不是很好的办法。

个人觉得比较好的办法是开机不进入图形界面而是直接进入命令行

@mindcont
mindcont / Some-knowledge-about-Android-development.md
Created August 8, 2017 12:34
一些关于安卓开发的知识

查看apk签名

keytool -v -list -keystore c:\Users\fenxi\.keystore\debug.mindcont.android.jks


别名: debug
创建日期: 2017-8-8
条目类型: PrivateKeyEntry
证书链长度: 1
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@mindcont
mindcont / emoji.md
Created August 16, 2017 11:24 — forked from hustcc/emoji.md
emoji-preview

Emoji表情

将对应emoji表情的符号码复制后输入你的markdown文本即可显示emoji表情。 如:blush:,显示为:blush:

人物

syntax preview syntax preview syntax preview
:bowtie: :bowtie: :smile: 😄 :laughing: 😆
@mindcont
mindcont / uss-enterprise-space-cruiser-sheet.md
Last active September 5, 2017 07:58
uss enterprise space cruiser sheet

U.S.S. Enterprise Space Cruiser

Summary:

THE VESSEL

美国企业号是宇宙飞船,官方名称是“星舰”。比现在的海军巡洋舰有点大,它是Starfleet服务中规模最大,最现代化的船只。它有一个430人的船员,其中约三分之一是女性。

The U.S.S. Enterprise is a spaceship, official designation "starship." Somewhat larger than a present-day naval cruiser, it is the largest and most modern type vessel in the Starfleet Service. It has a crew of 430 persons, approximately one-third of them female.

@mindcont
mindcont / ffmpeg.md
Created November 18, 2017 06:57 — forked from v5tech/ffmpeg.md
ffmpeg视频合并、格式转换、截图

使用ffmpeg合并MP4文件

ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@mindcont
mindcont / spider.sh
Created May 9, 2018 08:03 — forked from azhawkes/spider.sh
Really simple wget spider to obtain a list of URLs on a website, by crawling n levels deep from a starting page.
#!/bin/bash
HOME="http://www.yourdomain.com/some/page"
DOMAINS="yourdomain.com"
DEPTH=2
OUTPUT="./urls.csv"
wget -r --spider --delete-after --force-html -D "$DOMAINS" -l $DEPTH "$HOME" 2>&1 \
| grep '^--' | awk '{ print $3 }' | grep -v '\. \(css\|js\|png\|gif\|jpg\)$' | sort | uniq > $OUTPUT
@mindcont
mindcont / command.md
Last active July 1, 2019 10:21
搜集的有用指令

1 批量移动

·find -name "*2018-11*" -exec mv {} ./11/ \;·

2 查看当前80端口的连接数

netstat -nat|grep -i "80"|wc -l
5407

3 查看当前TCP连接的状态

TC1ERM

AA AB AC 03 00 00 00 02 02 10 00 00 00 2A 03 01 04 0D 01 09 01 01 02 1B 2F 03 93 54 43 31 45 52 4D 00 00 00 11 11 11 11 11 11 11 11 11 96 70 BA BB BC

AA AB AC 01 00 00 00 02 02 10 00 00 00 3C 03 01 04 0D 01 09 01 01 02 1B 2F 03 93 54 43 31 45 52 4D 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 A4 32 BA BB BC