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 | |
| python -m gita add -a . | |
| echo "datetime"$'\t'"author"$'\t'"message"$'\t'"branch" > log.tsv | |
| python -m gita super log --pretty="%ci%x09%cn%x09%f%x09%d" >> log.tsv |
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
| sudo sed -i 's/debian-sa1/\/usr\/lib\/sysstat\/sa1/g' /etc/cron.d/sysstat | |
| cat /etc/cron.d/sysstat | |
| sudo systemctl restart cron | |
| sleep 30 | |
| sar |
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
| foreach($line in Get-Content .env) { | |
| $pair = $line -split "=",2 | |
| $key = $pair[0].Trim() | |
| $value = $pair[1].Trim() | |
| [Environment]::SetEnvironmentVariable($key, $value, "Process") | Out-Null | |
| } |
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 | |
| python -m gita add -a . | |
| echo "datetime"$'\t'"author"$'\t'"message"$'\t'"branch" > log.tsv | |
| python -m gita super log --pretty="%ci%x09%cn%x09%f%x09%d" >> log.tsv |
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
| Get-ChildItem -Path ${env:bamboo-agent-home}\xml-data\build-dir -Directory | ?{ $_.LastWriteTime -lt (Get-Date).Subtract([TimeSpan]::FromDays(2)) } | Remove-Item -Force -Recurse -Confirm:$false -Verbose | |
| Get-ChildItem -Path ${env:HOMEPATH}\Documents\Katalon-Bamboo-Test-Results -Directory | ?{ $_.LastWriteTime -lt (Get-Date).Subtract([TimeSpan]::FromDays(2)) } | Remove-Item -Force -Recurse -Confirm:$false -Verbose | |
| Get-ChildItem -Path "C:\Program Files (x86)" -Filter "scoped_dir*" -Directory | ?{ $_.LastWriteTime -lt (Get-Date).Subtract([TimeSpan]::FromDays(2)) } | Remove-Item -Force -Recurse -Confirm:$false -Verbose |
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
| <?php | |
| /** | |
| * PHP version 7.2 | |
| * | |
| * @author Indra Ginanjar <indraginanjar@gmail.com> | |
| */ | |
| /** | |
| * Print IvLength of a cipher algo to screen | |
| * |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
| <xsl:output method="xml" indent="yes" encoding="UTF-8"/> | |
| <xsl:template name="millisecs-to-ISO"> | |
| <xsl:param name="millisecs"/> | |
| <xsl:param name="JDN" select="floor($millisecs div 86400000) + 2440588"/> | |
| <xsl:param name="mSec" select="$millisecs mod 86400000"/> |
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
Show hidden characters
| [ | |
| { | |
| "keys": ["j", "k"], | |
| "command": "_enter_normal_mode", | |
| "args": { | |
| "mode": "mode_insert" | |
| }, | |
| "context": [{"key": "vi_insert_mode_aware"}] | |
| } | |
| ] |
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
| select table_schema, | |
| table_name, | |
| column_name, | |
| column_type, | |
| is_nullable, | |
| column_comment | |
| from information_schema.columns | |
| where table_schema = '<database/schema name>' | |
| order by table_schema, table_name, ordinal_position |
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
| .drop-shadow { | |
| position:relative; | |
| float:left; | |
| width:40%; | |
| padding:1em; | |
| margin:2em 10px 4em; | |
| background:#fff; | |
| -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; | |
| -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; | |
| box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; |
NewerOlder