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 | |
# e.g 1.15.4 | |
# ./upgrade_go.sh 1.15.4 | |
version=$1 | |
if [ "$version" == "" ]; then | |
echo "invalid version" | |
exit 1 | |
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
$current_directory=Get-Location | |
Write-Host "Current directory: $current_directory" | |
Get-ChildItem | ForEach-Object -Process { | |
$is_folder = Test-Path -Path $_ -PathType Container | |
if (!$is_folder) { | |
# skip to next loop | |
return |
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
<configuration> | |
<property name="LOGS" value="./logs" /> | |
<property name="LOG_FILENAME" value="app" /> | |
<appender name="Console" | |
class="ch.qos.logback.core.ConsoleAppender"> | |
<layout class="ch.qos.logback.classic.PatternLayout"> | |
<Pattern> | |
%black(%d{ISO8601, Asia/Jakarta}) [%X{LOG_KEY}] %highlight(%-5level) [%blue(%t)] %yellow(%logger{25}): %msg%n%rEx | |
</Pattern> |
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
<configuration> | |
<property name="LOGS" value="./logs" /> | |
<property name="LOG_FILENAME" value="app" /> | |
<appender | |
name="Console" | |
class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"> | |
<jsonGeneratorDecorator class="net.logstash.logback.decorate.PrettyPrintingJsonGeneratorDecorator"/> | |
<providers> |
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
OlderNewer