This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const express = require('express'); | |
const { createProxyMiddleware } = require('http-proxy-middleware'); | |
const app = express(); | |
app.use('/aaa/bbb/ccc/', createProxyMiddleware({ | |
target: 'http://10.1.2.3:1234', | |
changeOrigin: true, | |
pathRewrite: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
const usage = () => console.log(` | |
Usage: | |
node config-env.js <envKey> | |
(e.g node config-env.js sit-ocip) | |
The script will replace config.json with config-<envKey>.json in /build folder, | |
and remove all config-*.json in the same folder. | |
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
del /f/s/q foldername > nul | |
rmdir /s/q foldername |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#http-server -p 1234 --cors ./poc > ./poc/http.log 2>&1 & | |
#pkill http-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A.removeAll(B); | |
A.addAll(B); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -i :3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const usage = () => console.log(` | |
Usage: | |
node decoder.js <file-path> | |
The script will decode any base64-encoded value for each line, | |
and create x.decoded.xml under the same folder. | |
`); | |
if (process.argv.length < 3) { | |
usage(); | |
process.exit(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -F ssh/config -N -L 1622:db-server-host:1622 jump-host-ssh-alias | |
sqlplus "user/pwd@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=localhost)(Port=1622))(CONNECT_DATA=(SERVICE_NAME=THE_DB_SCHEMA)))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rm = angular.element(document.body).injector().get("RM"); | |
rm.email = "my.email@hotmail.com" | |
angular.element(document.body).injector().get('MyDataService').getRmEmail(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *finanti*.sql | grep -E -v "^(1B|1C)" | xargs -I {} echo "-f {}" | xargs | |
// xargs supports parallel execution. |
NewerOlder