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 { setupTypeOrmTestConnection } from '../integrationSetup'; | |
beforeAll(async () => { | |
console.log('AFTER ENV SETUP START'); | |
global.testConn = await setupTypeOrmTestConnection(+process.env.TEST_PG_PORT); | |
console.log('AFTER ENV SETUP DONE'); | |
}); | |
afterAll(async () => { | |
console.log('AFTER ENV TEARDOWN START'); |
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 for regex: _([a-z]) | |
Replace to: \U$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
require 'httparty' | |
def get_data | |
query = File.open('repos.graphql', 'r').read | |
token = 'https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/' | |
cursor = nil | |
repos = [] | |
org = 'evil_mega_corp' | |
loop do |
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 | |
versions=(8 11) | |
if [ $# -eq 0 ] | |
then | |
echo "No arguments supplied. exiting" | |
exit 1 | |
fi |
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
pipeline { | |
agent any | |
environment { | |
def imageStreamTagExists = false | |
} | |
stages { | |
stage('Image stream tag') { | |
steps { |
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
pipeline { | |
agent none | |
stages { | |
stage('First') { | |
steps{ | |
script{ | |
withCredentials([usernamePassword(credentialsId: 'credentialId', usernameVariable: 'username', passwordVariable: 'token')]) { | |
print 'token.collect { it }=' + token.collect { it } | |
print 'username.collect { it }=' + username.collect { it } | |
} |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
FROM openshift/jenkins-slave-base-centos7 | |
USER root | |
RUN curl -skL -o nodejs-bin.tar.xz https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz && \ | |
tar -xf nodejs-bin.tar.xz && \ | |
mv node-v10.16.0-linux-x64 /opt/nodejs | |
RUN ln -sf /opt/nodejs/bin/node /usr/local/bin/node && \ | |
ln -sf /opt/nodejs/bin/npm /usr/local/bin/npm && \ |
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 { | |
log_format bodylog '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" $request_time ' | |
'<"$request_body" >"$resp_body"'; | |
lua_need_request_body on; | |
set $resp_body ""; | |
body_filter_by_lua ' |
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
1. Viewing branches diff with meld: | |
https://stackoverflow.com/questions/2006032/view-differences-of-branches-with-meld | |
git config --global diff.tool meld | |
File by File: | |
git difftool master..devel | |
Directory view: | |
git difftool -d master..devel |
NewerOlder