JavaScript POST方式打开新窗口
openWindowWithPost(url, { a: "1", b: 2, }); function openWindowWithPost(url, data) { var form = document.createElement("form"); form.target = "UserInfo"; form.method = "POST"; form.action = url; for (var key in data) { var input = document.createElement("input"); input.type = "hidden"; input.name = key; input.value = data[key]; form.appendChild(input); } document.body.appendChild(form); window.open('', 'UserInfo',"width=1000,height=550,left=100,top=100"); form.submit(); document.body.removeChild(form); } reference javascript-open-new-window-posting-parameters Window.open and pass parameters by post method How to Filter or Map Nodelists with JavaScript?
linux 命令memo
uuidgen 生成uuid history 命令行历史 修改history容量,~/.bashrc最后追加 export HISTSIZE=10000 export HISTFILESIZE=10000 df du # 查看磁盘占用 df -h # 查看文件夹大小 du -h -d 1 # 排序 du -m
linux下让Java程序运行在后台
nohup java -jar /web/server.jar > log.log 2>&1 & reference Run java jar file on a server as background process Launch springboot project in the background on Linux 2>&1到底是什么意思?
利用RSS自动下载Torrent
以前竟然不知道,每周都要上网站手动搜索 下载网站找到rss feed url,比如https://nyaa.si/?page=rss&q=ubu
weblogic console忘记密码的解决办法
重置密码太麻烦了,所以用解密 cd /u01/app/oracle/middleware/oracle_common/common/bin ./wlst.sh domain = "/u01/app/oracle/middleware/user_projects/domains/wl_domain" service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain) encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service) # 密文中有`\`的话,解密会报错,要去掉 # find encrptyed username and password in domainnamexxx/servers/AdminServer/security/boot.properties print encryption.decrypt("{AES}nFIptO4HdY8fxSgLjrS8ZNqsVlcB2zQZzYJQ9o7AbJU=") reference Quickest way to decrypt passwords in Oracle WebLogic Server 12c Decrypt your boot.properties
linux下设置定时任务
crontab -e A B C D E USERNAME /path/to/command arg1 arg2 Explanation of above cron syntax: A: Minutes range: 0 – 59 B: Hours range: 0 – 23 C: Days range: 0 – 31 D: Months range: 0 – 12 E: Days of the week range: 0 – 7. Starting from Monday, 0 or 7 represents Sunday USERNAME: replace this with your username /path/to/command – The name of the script
oracle安装后连接问题
1. ORA-12505: TNS:listener does not currently know of SID given in connect descriptor add to tnsnames.ora file, and run lsnrctl reload ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVICE = DEDICATED) (SERVICE_NAME = orcl) ) ) excute alter system set local_listener = '(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))' scope = both; in sqlplus.(username sys, password, orcl as sysdba) 2. 状态: 失败 -测试
virtualbox虚拟机启用宿主机摄像头
Install ‘Oracle VM VirtualBox Extension Pack’ Attaching webcam to guest OS VBoxManage list webcams VboxManage controlvm "Ubuntu 16.04.3" webcam attach .2 reference Enabling Webcam in VirtualBox Guest OS on Windows Host
oracle常用命令
在线执行环境,缺点是需要注册 Oracle live SQL http://sqlfiddle.com/ 创建用户 alter session set "_ORACLE_SCRIPT"=true; CREATE USER TOM IDENTIFIED BY a12345678; GRANT CONNECT, RESOURCE, DBA TO TOM; GRANT select on tom.contacts TO TOM; REVOKE DBA FROM TOM; REVOKE select on tom.contacts FROM TOM; DROP USER TOM; -- 同时删除用户下的所有对象
sqlserver常用命令
查找lock select * from master.dbo.sysprocesses where DB_NAME(dbid)=’test’ and spid<>@@SPID; exec sp_lock exec sp_who2 SPID; select request_session_id, resource_type, resource_description, request_mode, request_status, request_owner_type from sys.dm_tran_locks; kill SPID; 查看表结构 SELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'yourTableName'; 日期 -- 当前时