A | B |
---|---|
1 | 1 |
1 | 1 |
2 | 1 |
2 | 1 |
2 | 1 |
2 | 1 |
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
// infinispan | |
import org.infinispan.Cache; | |
import org.infinispan.configuration.global.*; | |
import org.infinispan.configuration.cache.*; | |
import org.infinispan.manager.*; | |
// os signals | |
import sun.misc.Signal; | |
import sun.misc.SignalHandler; | |
import java.lang.reflect.*; |
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 `gitlab-rails console` | |
JiraService.where("properties LIKE '%[email protected]'").each do |j| | |
j.url = JIRA_API_URL | |
j.username = JIRA_USER_EMAIL_ADDRESS | |
j.password = JIRA_USER_API_TOKEN | |
j.save | |
end |
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 {DynamoDB} = require('aws-sdk'); | |
const fs = require('fs') | |
let dynamodb = new DynamoDB({ | |
region: 'eu-central-1', | |
endpoint: 'dynamodb.eu-central-1.amazonaws.com', | |
accessKeyId: 'ACC', | |
secretAccessKey: 'SEC' | |
}); |
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
require('https').get({ | |
host: 'example.com', | |
port: 443, | |
path: '/foo/bar', | |
url: url | |
}, res => { | |
res.setEncoding("utf8"); | |
let body = ""; | |
res.on("data", data => { | |
body += data; |
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/sh | |
USER=admin | |
PASS=a | |
rabbitmqadmin -u "$USER" -p "$PASS" list queues | grep -oP "amq.gen-[\w\-]+" |
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
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |
- AWS Profile with rights to call http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html
- AWS CLI
- jq
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 | |
$USERNAME="" | |
$PASSWORD="" | |
$HOSTGROUP="Production" | |
$zabbixApiUrl="https://zabbix/api_jsonrpc.php" | |
login=$(cat <<EOF | |
{ | |
"jsonrpc": "2.0", | |
"method": "user.login", | |
"params": { |
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 branch -r --merged | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin |