HA

为命令行配置代理 # 注意代理要是http代理,sock代理是不行的 export HTTP_PROXY='127.0.0.1:1086' export HTTPS_PROXY='127.0.0.1:1086' 把desktop文件的程序固定到任务栏 复制desktop文件到~/.
在~/.bashrc最后添加下面脚本 upload () { if [ $# = 1 -o $# = 2 ];then if [ -f "$1" ];then if [ $# = 1 ];then curl -F "file=@$1" https://file.io/ --no-progress-meter | grep -Eo "http|https://[a-zA-Z0-9./?=_%:-]*";else if [[ "$2" =~ ^[1-9]+[wmy]$ ]];then curl -F "file=@$1" https://file.io/\?expires=$2 --no-progress-meter | grep -Eo "http|https://[a-zA-Z0-9./?=_%:-]*";else echo $'Wrong expiration format.\neg.
解密Jasypt密文 开发中遇到一些配置的密文,有解密的需要 AES256TextEncryptor encryptor = new AES256TextEncryptor(); encryptor.setPassword("some_salt"); String plainText = encryptor.decrypt(myEncryptedText); System.out.println("Decrypted: "+plainText); winmerge 除外特定文件或文件夹 进入 Tools | Filters… | Filefilters选
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?
uuidgen 生成uuid history 命令行历史 修改history容量,~/.bashrc最后追加 export HISTSIZE=10000 export HISTFILESIZE=10000 df du # 查看磁盘占用 df -h # 查看文件夹大小 du -h -d 1 # 排序 du -m
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 feed url,比如https://nyaa.si/?page=rss&q=ubu
重置密码太麻烦了,所以用解密 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
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
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. 状态: 失败 -测试