#Linux作業系統
##課程資料
- 開課:許富皓教授
- 開課單位:資工所
- 修課年度:103年
##背景知識
- X86 組合語言( AT&T 語法建議)
- C 語言
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
import os | |
import sys | |
import string | |
import random | |
def passwd_generator(size = 6, chars = string.ascii_uppercase + string.ascii_lowercase + string.digits): | |
return "".join(random.choice(chars) for x in xrange(size)) |
set shell=bash | |
set nocompatible | |
filetype on | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' |
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
print 'Hello World!' | |
print 'aaaa' | |
print 'aaaa' | |
word = 'python' | |
print word[0:3] |
def det(row1, row2): | |
return row1[0] * row2[1] - row1[1] * row2[0] | |
l4d2 = [ [1, 2], [3, 4] ] | |
print det(*l4d2) |
from numpy import matrix | |
form numpy import linalg | |
a = matrix([[1, 2], [3, 4]]) | |
linalg.det(a) |
#!/bin/sh | |
iptables -F | |
iptables -X | |
iptables -Z | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t nat -Z | |
iptables -N Firewall-INPUT |
#!/bin/sh | |
rsync -avur -e ssh [email protected]:linux-3.10.59-dirty . | |
cd linux-3.10.59-dirty && sudo make modules_install && sudo make install | |
sudo reboot |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
import java.util.Scanner; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.Socket; | |
public class Main { |
#Linux作業系統
##課程資料
##背景知識