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
Copyright (c) 2022 Tongliang Liu | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
Description: | |
This file is located at `/etc/ssh/sshd_config`. | |
Search for `enable passwordless ssh login` to see the options that need to be turned on/off. | |
------[Begin File Content]----------------------- | |
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ |
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
@GrabConfig(systemClassLoader=true ) | |
@Grab("mysql:mysql-connector-java:5.1.40") | |
import groovy.sql.Sql | |
def sql = Sql.newInstance("jdbc:mysql://localhost:3306/test", "root", "root", "com.mysql.jdbc.Driver") | |
def users = sql.rows("SELECT * FROM users") | |
println "Users: ${users.size()}" |
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
'$http_host ' | |
'$remote_addr [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" ' | |
'$request_time ' | |
'$upstream_response_time' | |
www.myapp.com | |
10.10.10.10 [06/Jun/2015:19:03:26 +0000] | |
"GET /gateway/api/feed/home?page=0 HTTP/1.1" 200 14732 |
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 | |
while : | |
do | |
echo -n "example.statsd.counter.changed:$((((RANDOM %10)+1)*3))|c"| nc -w 1 -u statsd.myapp.com 8125 | |
done |
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
@Component | |
class IntegrationJobTriggerBeanProcessor implements BeanPostProcessor { | |
private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |
private final IntegrationJobTriggerTaskInitializer triggerTaskInitializer; | |
private final IntegrationJobTriggerDefaultSchedules defaultSchedules; | |
private final IntegrationJobScheduleService jobScheduleService; | |
@Autowired | |
public IntegrationJobTriggerBeanProcessor(IntegrationJobTriggerTaskInitializer triggerTaskInitializer, | |
IntegrationJobTriggerDefaultSchedules defaultSchedules, |
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
--- | |
# defaults file for postgresql | |
postgresql_version: "9.5" |
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
- name: "Create database" | |
postgresql_db: | |
name={{ postgres_db_name }} | |
state=present | |
become_user: postgres | |
- name: "Create db user" | |
postgresql_user: | |
db={{ postgres_db_name }} | |
name={{ postgres_db_user }} |
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
# Project specific files (Please add your project specific files into this section) | |
# Java/Groovy specific files | |
*.class | |
*.jar | |
*.war | |
*.ear | |
# Log files | |
logs |
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
Show hidden characters
{ | |
// The number of spaces a tab is considered equal to | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true, | |
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and | |
// backspace insert/delete up to the next tabstop | |
"use_tab_stops": true, |
NewerOlder