# extract
tar -xvf archive.tar
# List files in archive.tar
tar -tvf archive.tar
# compress
tar -cvf archive.tar foo bar
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 all databases | |
SELECT | |
database_id, | |
name, | |
create_date | |
FROM sys.databases; | |
--or using Stored Procedure | |
EXEC sp_databases; | |
-- Switch database |
plugins {
id "com.dorongold.task-tree" version "1.5"
}
task resolveDependencies {
setDescription "Resolves all projects dependencies from the repository."
setGroup "Build Server"
doLast {
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
deploy:paas-gae: | |
stage: deploy | |
image: google/cloud-sdk | |
before_script: | |
- echo "${GCLOUD_SERVICE_KEY}" > /tmp/.gsa.key | |
- gcloud auth activate-service-account --key-file /tmp/.gsa.key | |
- gcloud config set project "${PROJECT_NAME}" # TODO: change this | |
script: | |
- gcloud app deploy | |
environment: |
kafkacat -b bootstrap.kafka.host:9092 \
-C -t topic \
-s avro -r http://schema-registry.host:8081 \
-f '
Key (%K bytes): %k
Value (%S bytes): %s
Timestamp: %T
Partition: %p
Offset: %o
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
format = """ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_commit\ | |
$git_status\ | |
$git_state\ | |
$kubernetes\ | |
$golang\ |
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
### OmniAuth Settings | |
###! Docs: https://docs.gitlab.com/ce/integration/omniauth.html | |
gitlab_rails['omniauth_enabled'] = true # Show "Signin with..." button in Login page | |
gitlab_rails['omniauth_allow_single_sign_on'] = ['google_oauth2'] # Create account automatically | |
# gitlab_rails['omniauth_sync_email_from_provider'] = 'saml' | |
gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'google_oauth2' # Redirect to provider login page when enter gitlab login page | |
# gitlab_rails['omniauth_block_auto_created_users'] = true # true: auto-created user must be admin approved | |
# gitlab_rails['omniauth_auto_link_ldap_user'] = false | |
# gitlab_rails['omniauth_auto_link_saml_user'] = false | |
# gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2'] |
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
variables: | |
ANDROID_COMPILE_SDK: "28" | |
test:unit: | |
image: circleci/android:api-${ANDROID_COMPILE_SDK} | |
cache: | |
key: gradle-cache | |
paths: [ .gradle ] | |
variables: | |
# GRADLE_OPTS: "-Dorg.gradle.daemon=false" |