This file contains hidden or 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
# ~/.bash_logout: executed by bash(1) when login shell exits. | |
# when leaving the console clear the screen to increase privacy | |
if [ "$SHLVL" = 1 ]; then | |
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q | |
fi |
This file contains hidden or 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 | |
export PERL_MM_USE_DEFAULT=1 | |
cpan install YAML | |
cpan install Devel::Camelcadedb | |
echo -e "\n\ | |
export PERL5_DEBUG_ROLE=\"server\"\n\ | |
export PERL5_DEBUG_HOST=\"0.0.0.0\"\n\ | |
export PERL5_DEBUG_PORT=\"7755\"\n\ |
This file contains hidden or 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
# Set the container you want to skip | |
$Skip = "centos","ID" | |
docker ps -a | foreach { | |
$rows = [regex]::Split($_, "\s+"); | |
if ( $rows[1] -notin $Skip ) { | |
docker rm $rows[0] | |
} | |
} | |
# Inline |
This file contains hidden or 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
# davbizz prompt script | |
# vim:set syntax=sh: | |
# Inspired by https://github.com/demure/dotfiles/blob/master/subbash/prompt | |
# Install: | |
# 1. Copy/Checkout this file in your home directory | |
# 2. Install powerline fonts and set a powerline font for your terminal ( https://github.com/powerline/fonts ) | |
# 3. Include this file from the .bashrc ( . $HOME/.bash_theme ) | |
# | |
# Depending on the additional PROMPT_COMMAND you have the include of the .bash_theme could |
This file contains hidden or 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
fn main() { | |
let name = String::from("World"); | |
let test = Test::new(&name); | |
test.run().unwrap(); | |
} | |
struct Test<'a> { | |
name: &'a String | |
} |
This file contains hidden or 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 | |
set -e | |
DATABASE="icinga" | |
CHARSET="latin1" | |
COLLATE="latin1_swedish_ci" | |
echo "Attention!!: Converting database '$DATABASE' and all tables in it to '$CHARSET'" |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
SCRIPT=$0 | |
# Default arguments | |
# | |
OC_USER="[email protected]" | |
OC_PASSWORD= |
This file contains hidden or 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
2019-10-03 13:15:05:622 - [HTTP] --> POST /wd/hub/session | |
2019-10-03 13:15:05:622 - [HTTP] {"desiredCapabilities":{"os_version":"9.0","device":"google pixel 3","real_mobile":true,"browserstack.debug":"true","browserstack.networkLogs":"true","browserstack.appium_version":"1.9.1","acceptSslCert":true,"detected_language":"webdriver/5.13.1","osVersion":"9.0","deviceName":"google pixel 3","browserstack.appiumVersion":"1.9.1","sessionName":"Showcase","projectName":"AeroGear Test Suit","browserstack.tunnelIdentifier":"","platform":"ANDROID","browserstack.appiumLogs":"true","browserstack.minOSVersion":"4.4","appPackage":"org.aerogear.ionic.showcase","appActivity":"org.aerogear.ionic.showcase.MainActivity","bundleID":"org.aerogear.ionic.showcase","browserstack.deviceLogs":"true","nativeWebScreenshot":true,"version":"","mobile":{"browser":"mobile","version":"Google Pixel 3-9.0"},"orig_os":"android","64bit":false,"browserstack.video":"true","browserstack.video.disableWaterMark":"false","proxy_type":"node","realMobile":" |
This file contains hidden or 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
{ | |
"meta": { | |
"type": "db", | |
"canSave": false, | |
"canEdit": false, | |
"canAdmin": false, | |
"canStar": false, | |
"slug": "syndesis-infra-api", | |
"url": "/d/YPnPk0lik/syndesis-infra-api", | |
"expires": "0001-01-01T00:00:00Z", |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: elastic-kibana-deployment | |
labels: | |
app: elastic-kibana | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
OlderNewer