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
select setval ('event_data_data_id_seq',(select max(data_id) from event_data )); | |
select setval ('event_types_event_type_id_seq',(select max(event_type_id) from event_types )); | |
select setval ('events_event_id_seq',(select max(event_id) from events )); | |
select setval ('recorder_runs_run_id_seq',(select max(run_id) from recorder_runs )); | |
select setval ('schema_changes_change_id_seq',(select max(change_id) from schema_changes )); | |
select setval ('state_attributes_attributes_id_seq',(select max(attributes_id) from state_attributes )); | |
select setval ('states_meta_metadata_id_seq',(select max(metadata_id) from states_meta )); | |
select setval ('states_state_id_seq',(select max(state_id) from states )); | |
select setval ('statistics_id_seq',(select max(id) from "statistics" )); | |
select setval ('statistics_meta_id_seq',(select max(id) from statistics_meta )); |
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
${__groovy("${cart_id}"!="")} | |
${__groovy("${cart_id}"=="")} | |
and the cart_id user defined variable has to be defined |
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
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(white)%s %C(bold white){{%an}}%C(reset) %C(cyan)%d%C(reset)' --graph --date=short" |
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 IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "clang - Build and debug active file", | |
"type": "cppdbg", | |
"request": "launch", |
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
find . -maxdepth 1 -type d -exec du -sh {} \;|sort -h |
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 | |
service_name="backup-all-secrets" | |
secret_list=( `docker secret ls --format "{{ .Name }}"` ) | |
cmd="docker service create \ | |
--name $service_name \ | |
--constraint node.hostname==`hostname` " | |
for secret in "${secret_list[@]}" |
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
net.ipv4.ip_forward=1 | |
net.ipv6.conf.all.forwarding=1 | |
net.ipv4.conf.all.send_redirects=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
DN=`date "+%y%m%d-%H%M%S"` | |
mkdir $DN |
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
docker run -it --entrypoint=sh justb4/jmeter:5.1.1a |
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
apt install genisoimage | |
geteltorito -o bios.img oldschool_bios_updater.iso | |
dd if=bios.img of=usb-stick status=progress conv=sync |
NewerOlder