-
Process memory in MiB
watch -n 1 "cat /proc/79204/smaps | grep -i pss | awk '{Total+=\$2} END {print Total/1024 \"MiB\"}'"
Process memory in MiB
watch -n 1 "cat /proc/79204/smaps | grep -i pss | awk '{Total+=\$2} END {print Total/1024 \"MiB\"}'"
const { access_token } = pm.response.json(); | |
const jwtToken = JSON.parse(atob(access_token.split('.')[1])); | |
var template = ` | |
<style type="text/css"> | |
.tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;} | |
.tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;} | |
.tftable tr {background-color:#ffffff;} | |
.tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;} |
useJUnitPlatform { | |
// Include Test Files | |
if (project.hasProperty('includeTestFiles')) { | |
((project.property('includeTestFiles') as String).tokenize(',')).each { | |
include "${it}" | |
} | |
} | |
filter { | |
// Include Test Methods |
#!/bin/bash | |
# Install Docker, you can ignore the warning from Docker about using WSL | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
# Add your user to the Docker group | |
sudo usermod -aG docker $USER | |
# Sanity check that both tools were installed successfully |
bump-versions: | |
git submodule foreach 'git fetch origin; git checkout origin/develop' | |
git submodule foreach 'cd .. && git add $$name' | |
git commit -m 'Bump versions' | |
git show |
@Module({ | |
providers: [ | |
{ | |
provide: MyApiService, | |
useFactory: (configService: ConfigService) => { | |
return new MyApiService( | |
configService.getOrThrow('MY_BASE_URL'), | |
configService.getOrThrow('MY_USER'), | |
configService.getOrThrow('MY_PASSWORD') | |
); |
class Middleware { | |
use(fn) { | |
this.go = (prev => item => { | |
return prev(fn(item)); | |
} | |
)(this.go) | |
} | |
go(item) { | |
console.count('GO'); | |
return item; |
Find out percentage of tables created on disk
mysql> show global status like 'created_tmp_disk_tables';
+-------------------------+--------+
| Variable_name | Value |
+-------------------------+--------+
| Created_tmp_disk_tables | 278571 |
+-------------------------+--------+
1 row in set (0.00 sec)