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
version: "3.9" | |
services: | |
api: | |
logging: | |
driver: 'local' | |
options: | |
max-size: "10m" | |
max-file: "3" |
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
"""쿼리 딜리버리 접속용 SSH 터널링 진단 도구 | |
- AWS API 키가 필요합니다. | |
- Python3.6 이상의 버전에서 실행하는 것을 추천드립니다. | |
- boto3가 필요합니다. [virtualenv](https://docs.python.org/ko/3/library/venv.html) 환경에서 작업하시는 것을 추천합니다. | |
``` | |
$ python -m venv .venv | |
$ source .venv/bin/activate | |
$ pip install boto3 |
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
--[[ | |
This piece of hammer spoon code tries to address the issue of not being able to | |
switch between Alacritty instances in OSX. | |
Details: https://github.com/alacritty/alacritty/issues/607 | |
To install: | |
1. Install hammer spoon (https://www.hammerspoon.org/) | |
2. Drop this file in your hammerspoon config directory: | |
$HOME/.hammerspoon/others/alahack.lua | |
3. Open your init.lua ($HOME/.hammerspoon/init.lua) and add this at the end: | |
-- Load Alacritty hack |
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
(function() { | |
var w = window; | |
if (w.ChannelIO) { | |
return (window.console.error || window.console.log || function(){})('ChannelIO script included twice.'); | |
} | |
var ch = function() { | |
ch.c(arguments); | |
}; | |
ch.q = []; | |
ch.c = function(args) { |
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
interface ErrorNoteProps { | |
text: string; | |
} | |
const ErrorNote: React.FC<ErrorNoteProps> = ({text}) => ( | |
<span className="errorNote"> | |
{text} | |
</span> | |
); |
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
# requires | |
# - https://github.com/hashicorp/terraform-provider-aws | |
# - riggrep | |
# - awk,sed,sort | |
# - your terraform code | |
# - python 3.6 + | |
pushd your-tf-directory | |
rg resource\ \"aws | sed s/\[\"{\:\.\/]//g | awk '{print "rg '\''conn\\\.([A-Za-z]*)'\'' -r '\'''\$'1'\'' -N -o aws/resource_"$2".go | sort -u | awk '\''{print \""$2"::\"$1}'\''| sed s/^aws_//g"}' > /tmp/something | |
popd |
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
a() { | |
if [[ "$1" = *Neo* ]]; | |
then | |
echo "hi"; | |
fi | |
echo $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
SELECT | |
c.name, | |
o.price | |
FROM customer AS c | |
JOIN order AS o ON o.customer_id = c.id | |
WHERE | |
o.price > [가격] | |
ORDER BY o.price DESC |
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 json | |
from docutils.core import Publisher | |
from docutils.io import StringInput, StringOutput | |
from docutils.nodes import NodeVisitor, document, section | |
from docutils.writers import Writer | |
class MyTranslator(NodeVisitor): | |
def __init__(self, *args, **kwargs): |
NewerOlder