~/.gitconfig:
[includeIf "gitdir:~/workspace/project1/**"]
path = .gitconfig.project1
[includeIf "gitdir:~/workspace/project2/**"]
path = .gitconfig.project2
~/.gitconfig.project1:
~/.gitconfig:
[includeIf "gitdir:~/workspace/project1/**"]
path = .gitconfig.project1
[includeIf "gitdir:~/workspace/project2/**"]
path = .gitconfig.project2
~/.gitconfig.project1:
| # usage | |
| # python delete-index-by-pattern-in-es.py http://ES_HOST:9200 my-es-index-* | |
| # indexes matched with pattern you entered will be deleted | |
| from elasticsearch import Elasticsearch | |
| import sys | |
| es_host = sys.argv[1] | |
| index_pattern = sys.argv[2] | |
| print(f"es_host:{es_host} ; index_pattern:{index_pattern}") |
harray-ios-sdk projesini local'deki demo bir ios projesinde kullanabilmek icin adimlar:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'batuiostest' doRemoving keys that contain displayed:
redis-cli --scan --pattern *displayed* | xargs redis-cli del
Source: https://rdbtools.com/blog/redis-delete-keys-matching-pattern-using-scan
uniq araci sadece komsu satirlari kullanarak tekillestirme yapar.
$ cat test.txt
a
a
a
b
b
cCouchbase'de bir dokumani kismi olarak guncellemek icin tum dokumani cekip, guncellemeyi yapip tekrar kaydediyoruz. Bunun yerine 4.5 ile gelen SubDocument yapisi kullanilabilir.
Kaynak: https://docs.couchbase.com/java-sdk/2.7/subdocument-operations.html
| select 5 from unnest(sequence(1, 6)) | |
| -- generates 6 row containing '5' as an example data | |
| -- column | |
| -- 5 | |
| -- 5 | |
| -- 5 | |
| -- 5 | |
| -- 5 | |
| -- 5 |
Yaml dosyalarda yes, on, true gibi degerlerin hepsi boolean true degerine eslestiriliyor.
Bu da gozden kactiginda tespiti zor buglara neden oluyor.
Bu tarz sorunlardan bastan kacinmak icin string alanlari cift tirnak ile cevrelemek iyi bir pratik.
🚫 Kotu ornek:
watermark:
- no
- yes