En raison de modifications du site, je ne l'utilise pas beaucoup Oubliez les commandes utiles ... Il y a beaucoup de choses comme ça, c'est donc ma propre note.
Linux
dd bs=1M count=1000 if=/dev/zero of=/HOGE/disktest oflag=direct
wget -O [output] --load-cookies="./cookie.txt" [url]
nvidia-smi
perl -p -e 's/\n/\r\n/'
lsof -i
lsof -i:[port]
netstat -antu
Python
import requests
cookies = {
'aaa': '81',
'bbb': 'xxx'
}
res = requests.get([url], cookies=cookies)
http://qiita.com/y__sama/items/a2c458de97c4aa5a98e7
math.iznan(xxx)
print("hello", end="")
for x in[None]*xxx
for x in[0]*xxx
for x in range(xxx)
#Facile avec les pandas
pd.to_datetime('2015/1/1 10:00')
#Facile avec les pandas
pd.to_datetime('2015/1/1 10:00').tz_localize('GMT').tz_convert('Asia/Tokyo')
-> Timestamp('2015-01-01 19:00:00+0900', tz='Asia/Tokyo')
def pvars(_class):
for _key in vars(_class).keys():
print('[%s] %s' % (_key, vars(_class)[_key]))
column_name = df.max().argmax()
index_name = df[column_name].argmax()
df.ix[index_name, column_name]
mongodb
db.collection.find(xxx: {$type: 2})
-Disparu? 0
- Double 1
- String 2
- Object 3
- Array 4
- Null 10
- 32-bit integer 16
- Timestamp 17
- 64-bit integer 18
db.collection.find({xxx: {$gte:ISODate("2014-11-01T00:00:00Z")}})
Recommended Posts