Skip to content

Instantly share code, notes, and snippets.

View mindcont's full-sized avatar
🎯
Focusing

Apes mindcont

🎯
Focusing
View GitHub Profile
# 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 / 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
@mindcont
mindcont / ubuntu-remove-gui.md
Created May 20, 2017 01:43
ubuntu如何卸载图形界面

ubuntu如何卸载图形界面

方法

直接卸载界面

sudo apt-get remove unity

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

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

@mindcont
mindcont / openwrt-upgrade.sh
Created May 4, 2017 12:58
upgrade software in openwrt
#!/bin/sh
opkg update
for ipk in $(opkg list-upgradable | awk '$1!~/^kmod|^Multiple/{print $1}'); do
opkg upgrade $ipk
done
@mindcont
mindcont / nginx-php-mysql-install.md
Last active April 27, 2017 07:20
nginx、php7、mysql 安装指南

nginx

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
@mindcont
mindcont / git-command.md
Last active October 6, 2018 01:07
git 常用指令操作

git 常用指令操作

本文针对初级用户,从最简单的讲起,但是需要读者对Git的基本用法有所了解。同时,本文覆盖了上面5个命令的几乎所有的常用用法,所以对于熟练用户也有参考价值。

1 git clone

本地主机生成一个目录,与远程主机的版本库同名

$ git clone https://github.com/torch/distro.git ~/torch --recursive
@mindcont
mindcont / tip.md
Last active October 6, 2018 01:48
Linux平台常用配置

常用软件

#新立得软件包 (synaptic)
sudo apt-get install synaptic

# ibus 谷歌拼音
sudo apt-get install ibus-googlepinyin
ibus-setup
@mindcont
mindcont / phpmyadmin-connect-remote-mysql.md
Last active April 11, 2017 03:01
本地 phpmyadmin 连接远程数据库 local phpmyadmin connect remote mysql database

1.屏蔽本地连接

ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1

run the command vim /etc/mysql/my.cnf.
comment bind-address = 127.0.0.1 using the # symbol.
restart your mysql server once.

2.远程访问权限

@mindcont
mindcont / jandan.py
Created April 4, 2017 09:03
python爬虫-抓取煎蛋妹子图
#!/usr/bin/python
# -*- coding:utf-8 -*-
import threading
import requests
import re
import sys
from bs4 import BeautifulSoup
from datetime import datetime
from lxml import etree
@mindcont
mindcont / adbwifi.sh
Created February 24, 2017 01:47 — forked from stormzhang/adbwifi.sh
shell script for adb wifi
#!/bin/bash
#Modify this with your IP range
MY_IP_RANGE="192\.168\.1"
#You usually wouldn't have to modify this
PORT_BASE=5555
#List the devices on the screen for your viewing pleasure
adb devices