Removing 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
Removing 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
c
Couchbase'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
def limit(num, minimum=1, maximum=255): | |
"""Limits input 'num' between minimum and maximum values. | |
Default minimum value is 1 and maximum value is 255.""" | |
return max(min(num, maximum), minimum) |
I usually use Groovy Console to run code below to get next execution date for Spring cron expressions.
new org.springframework.scheduling.support.CronSequenceGenerator("0 0/5 * * * *").next(new Date())
If you got following error when you try to run your Flink job on local.
Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.scala.typeutils.CaseClassTypeInfo
Then change your provided
scoped Flink dependencies to compile
scope.
On IntelliJ it can be done using Project Structure
window: