💕😍😚😍💕 So Happy to finally meet up with my bump bestie 💗 @ngcherlyn! Can't imagine how far we have come since our firsr baby bash, from our 2017 babies to our 2020 babies, we are always in the same edd group chat and working together!
May our babies grow up happy and healthy, next time want to par tok please bring mummies along 🤣🤣🤣 okay? Promise we won't keep taking photos, maybe videos ya?
Still amazed by how we breezed (as if) thru our steamboat lunch today, one feed bottle while eating! Another disappeared under nursing cover, heng my husband took over from me or else I will take hours to finish (love you @der_rick 😘!
👉🏻 Using Asoona Baby carrier from @soulsingapore, suitable to use from newborn, no need for infant insert oh! 👌🏻
#familystaysg
#sgmums
#sgbaby
@ Tiong Bahru 中峇魯
同時也有2部Youtube影片,追蹤數超過5萬的網紅麋先生MIXER,也在其Youtube影片中提到,★ 新生代舞者演員雙棲「韓寧」主演 ★ 昏鴉樂團陳容寬導演再一跨界力作 不想像別人一樣 不想像大家一樣 不想像你一樣 不想像你想的一樣 膩了那些一模一樣 我就是愛自己的四不像 I’m a Père David's deer Never fight and never steal If you t...
「bash if else」的推薦目錄:
- 關於bash if else 在 Familystaysg Facebook 的最讚貼文
- 關於bash if else 在 Kewang 的資訊進化論 Facebook 的最佳貼文
- 關於bash if else 在 mrbrown Facebook 的最佳解答
- 關於bash if else 在 麋先生MIXER Youtube 的精選貼文
- 關於bash if else 在 seanlje Youtube 的精選貼文
- 關於bash if else 在 Bash: If/Else statement in one line - Stack Overflow 的評價
- 關於bash if else 在 In a bash script, using the conditional "or" in an "if" statement 的評價
- 關於bash if else 在 Bash If-Else Statements - All You Need to Know About 的評價
bash if else 在 Kewang 的資訊進化論 Facebook 的最佳貼文
繼之前分享如何實作「窮人版 ELK」之後,再來分享一下這個服務裡面的 DSL 是如何實作的。會想到要為這個服務做 DSL,主要是小編雖然已經把 Impala 產生的資料利用一些工具轉成 PNG 圖檔,但動作太繁雜,所以想把這些過程用 DSL 來表示,工程師只要會下 SQL 就能把資料轉成 PNG 圖檔了。
其實對於 DSL,有在 follow 粉絲頁的朋友應該有注意到,小編很久以前就有一個屬意的方案了,那就是 MSON。它結合了 Markdown 以及 JSON,所以不只人類易讀,機器也易讀。只不過 MSON Parser 一直都是殘缺不全,所以沒辦法讓小編完整的實作 DSL,這個方案就被捨棄了。
另一個也很適合拿來做 DSL 的就是 YAML 了,個人覺得跟 MSON 比起來易讀性稍低一點,但已經是目前還不錯的實作方式,所以就以這個來做為「窮人版 ELK」的 DSL 實作方案。
DSL 已經把所有轉換的細節都隱藏起來了,工程師只要先自己在 Impala 上撰寫正確的 SQL 指令,其他動作只要把必要欄位填完就可以了。下面是必要欄位的說明:
* SQL:要在 Impala 裡面執行的 SQL 指令,其中有用 ":VAR" 包起來的變數名稱,表示是從 INPUT 欄位取得
* CHART:highcharts 的圖表格式,DSL 目前支援 column (長條圖)、pie (圓餅圖)
* INPUT:這是一個陣列,表示這個變數名稱是從外部操作時取得,另外後面的 "date" 為資料型態,目前支援的類型為 HTML 的 input[type]
* OUTPUT:產生 PNG 圖檔時的欄位資訊,如 X 軸是從 Impala 的哪個欄位取得,顯示在圖表上的名稱要叫什麼
至於轉換細節又是另一件麻煩事,將 DSL 轉成最後的圖檔又經過了不少步驟:
1. js-yaml:雖然說 YAML 很適合拿來做 DSL,但 JSON 還是目前大家最常用的格式。所以當然要先把 YAML 轉成 JSON 這樣才好操作 XD
2. jq:轉換過程中 jq 幫了小編很大的忙,官網寫著這是一套輕量且靈活的命令列 JSON 處理工具。無論要對 JSON 取 key、取 value、取 length、做 group by、做 sort by、if-else、while-loop 都可以,就是很強大。所以小編就拿這個將 YAML 轉換完的 JSON,用一堆奇怪的語法把資料轉換成功。
其實在轉換過程最麻煩的不是操作 JSON,最麻煩的在小編不太會寫 bash script 啊!!!尤其是一堆變數轉換的過程,一下子用 ${},一下子用 $(),還有 ${[$k]} 的這種寫法,看了頭好痛 Orz
最後把 jq 轉完的資料丟給前一篇提到的那些工具,就可以完美把 PNG 圖檔產生出來了,第二篇的「窮人版 ELK」文章到此也就結束了。其實這個專案還有另一個跟圖表無關的功能,那就是即時觀看 API 發送歷程,如果有第三篇的話再來分享一下好了。
* 如何實作「窮人版 ELK」:https://www.facebook.com/kewang.information/posts/2085843121692051
* 如何使用 MSON 的幾個方向:https://www.facebook.com/kewang.information/posts/1940647046211660
* jq:https://stedolan.github.io/jq
#mson #dsl #yaml #json #jq
bash if else 在 mrbrown Facebook 的最佳解答
longtailbutterfly, an NSF serving in SCDF, shares a day in his life on Reddit. Thank you for your service.
--------
"Let's tell a story.
I'm working my 24 hr (work 24 hours, off 48 hours) duty. It's 1100 and I just finished morning lecture (equipment drill and familiarisation) in the engine bay of my fire station. It's a Saturday so our rota (platoon-ish) orders nasi lemak. Coding comes in over the loudspeaker and we turn out to a case of locked door, suspected DOA (decomposing body). Traffic doesn't give way to our LF (red rhino), as per usual (smh). We arrive at the HDB unit and instantly we smell the dead body. The knowledge of smell will come with experience. The niece, who called 995, asks me if her uncle will be ok. I already know the body is decomposing but I reply "We're unsure, but we'll try our best". I lie to her face. My pump operator (PO, and the only regular in the crew) looks at me and grimaces. We've been in this situation together many times before. We easily break the door and the smell intensifies. I go in first, followed by the ambulance (alpha) paramedic. We find the body on the bed in the master bedroom. The paramedic tells me, "About two weeks". The body is severely bloated, skin green and black. The face is unrecognizable as it has bloated too much. Bile attempts to escape from between the discolored lips creating bubbles. The smell is sweet but rotten and my fireman gags. I get the relevant information I need and step out for a breather. The niece looks at me and asks what is going on. I look at her and I know she knows he's dead. "You uncle... has passed away". I turn away to avoid the emotions. Emotions are killers in this line of work.
We get back in time for nasi lemak lunch. The chicken is a bit soggy this week. The smell of rotten flesh lingers in my nostrils. I watch the Malay romantic drama that my enciks chose on the TV. It's ok, the girl is cute.
Before dinner we get another call - unit fire confirm case. We race there and reach before the fire engine (pumper). They're caught in traffic and will take another few minutes. Two firefighters and I proceed to the unit. Instantly the thick black smoke chokes my throat and waters my eyes. I struggle with my breathing cylinder because the air hose delivery tool is stuck between my backplate and my back. I say fuck it, neighbours are already screaming for us to hurry. The pressure escalates but I close myself off from the members of public, just like normal. We all focus. The only things I listen to are my matra (radio) and my fireman. I just wear my facemask for minimal protection and crawl in. The fire is well alight on the stove and I shoot at it. The smoke limits my visibility to 0, I now can't see my fingers as I stretch out my arm. I crawl back out and get stuck on a fallen wire. I panic as I think of my family. Emotions are dangerous. A fire biker crawls in and frees me. We step out and I tell the crew the fire is almost finished but our CAF backpacks are finished (water foam sprayers). I send the firefighters down to set up water supply from hydrant and crawl back in with the firebiker. The smoke makes it feel like someone just threw hot ash down my throat. We extinguish the fire using an ass-washing hose from the kitchen toilet. I am coughing badly but he sprays my face with the hose. The kitchen is badly burnt. I can feel the smoke damage in my lungs. The owner and neighbours pat me on the back and thank me for saving their home as I walk out. I smile but I know I took another step closer to death.
We get back at 2200 and order McDonalds. It is the best Double McSpicy I’ve eaten in a while.
At lunch the next day my friend (SAF LTA) tells me how stressful being an instructor at SAFTI has been recently. I remember as my cylinder got trapped on the fallen wire, and how I thought of my family in those few struggling seconds. I nod my head and grunt. " SAF has it tough with JCC and everything huh?" I joke. He agrees enthusiastically.
All in a day’s work for the NSFs in SPF/SCDF. If we fail, someone dies from our direct actions. Welcome to NS. No second chances or semula. Just death. I wish the public knew the risks that some NSFs take each day. We might not be as fit as NDU or as garang as commandos, but we put our lives on the line literally every day.
As an NSF I can say I have saved many lives, fought many fires and contributed to Singapore. No play acting or training for a war that will never happen (though I understand the incredible need for an armed military). I love my job, I love NS and wouldn't trade it for anything else (maybe an EMT vocation).
I am still amazed that many members of public still associate NS with army. I wish people would know. There's no greater feeling in this world than knowing some uncle I helped rescue on my first duty at 0200 will live to eat his favourite mee pok or talk cock with his kakis because of my direct actions. Pride and care right?
At least I get paid $1400 a month (;
UPDATE: Thanks for overwhelming suppourt. If I knew how big this would get I would have proofread my writing more 😒 (some might say it spread like fire in dry grass during lalang season). I would tell more stories but I know that it would compromise my anonymity so I'll just shut my mouth, and unfortunately since this is a throw away you guys probably won't be hearing from me again.
What were my goals for this post?
To bring awareness to the nature and extent of NSF work in SCDF.
To just get some words off my chest.
This post was NOT meant to:
Bash SAF. I know the importance of a trained military (I believe I addressed this point in my initial post). If we didn't have the National Service Scheme, invading Singapore as Indonesia or Malaysia would be easy af.
Over-dramatise our work. I tried my hardest to write from a neutral stand point and deliver facts about incidents as cold, hard, and true as the Ben&Jerrys ice cream in my freezer however what we do on a daily sometimes makes me ask "Am I in a Michael Bay film?". It happens to the best of us.
If you were offended, I apologise. My intentions were merely to raise awareness for the often overlooked and under-praised "little brother" NSFs in SCDF/SPF. So many of our kind deserve recognition for what they deal with.
One last short bit before signing off.
EMTs (medical assistants in ambulances) have some of the roughest calls out there, no contest. I was having dinner with my buddy from BRT who later became an EMT at a high volume station when he dropped Fat Man 2.0 on me. Traditionally he and I have always been tuned to similar wavelengths as the chaos-utopia nature of our jobs is only shared between a select few.
He's an NSF like me -- 18-22, male, horny. As per the norm we were sharing gossip about events or big incidents in the Force, latest happenings and where that one cute paramedic at 33 is now. We were just digging in to our chow when he told me "I had a casualty die in my hands for the first time".
According to him it's not common for that to happen. I nod my head as I spool my pasta. It's has a thick green sauce and I can't help but think of my last DOA. I throw the idea out of my mind. Work is work, recreation is recreation. Usually when EMS arrives the casualty has a high chance of surviving, albeit sometimes with long lasting or even permanent injuries, or the casualty is dead. "Case of fall from height. The skull was completely smashed," he told me between mouthfuls of food, "I had the guy in a head grip but the harder I held his skull, the more my fingers just... pressed into his brain. There was no structural integrity left in the skull." We continued eating, he had told me of a similar case before. It wasn't new news to either of us. The pasta burns my tongue and I sip on my lemon tea. Too sweet. "Then he just stopped breathing. CPR AED didn't work." It was the first time witnessing the transition from alive to dead. They couldn't resuscitate. We paid the bill and started chitchatting about soccer on the way to the MRT. It was one of eight calls on his 8 hour duty. The food place was way too expensive and I made a mental note to never go back (unless I'm with my parents). Who charges $5 for ice lemon tea? Christ.
There are many duties where I don't get a call the whole 24 hours. If it's a busy day we'll get 3-4. 3-4 for him is a light day. Alpha (ambulance) guys really get it the hardest.
If you know someone who has a similar job, just listen to what they have to say. It's not easy for everyone to transition from seeing a broken family outside a unit containing a dead body to eating breakfast with their fam at their favourite prata house while being all happy smiley. We all get desensitised to death and risking everything but desensitisation doesn't mean it doesn't take a mental toll on our minds and well-being. We don't admit it because it's not garang, but everyone needs to get their thoughts off their chest every once in a while. You can help them by lending a ear (or a hug)."
via: https://www.reddit.com/r/singapore/comments/4iexp5/a_rant_on_national_service_from_an_nsf/
bash if else 在 麋先生MIXER Youtube 的精選貼文
★ 新生代舞者演員雙棲「韓寧」主演
★ 昏鴉樂團陳容寬導演再一跨界力作
不想像別人一樣
不想像大家一樣
不想像你一樣
不想像你想的一樣
膩了那些一模一樣
我就是愛自己的四不像
I’m a Père David's deer
Never fight and never steal
If you try to be someone else
You end up unsightly without doubt
#麋先生 #韓寧
#四不像 #PèreDavidsDeer
#屌兒啷噹 #MIXER
-
【四不像Père David's Deer】
詞:吳聖皓 曲:林喆安
他裝得比他更嬌貴
He looks higher class
他演得比他得人緣
Acts like he's more popular
他聽的音樂有品味
He listens to better music
比較少人聽的那位
Songs lesser-known
他服裝用錢做搭配
He dresses rich
他酒比你喝的大杯
A bigger drinker than you are
不就是逼死自己
You’re just driving yourself mad
比贏了誰?
Who are you trying to beat?
好棒好棒
Hurray! Hurray!
你快樂嗎
Does that make you feel great?
笑得太僵
You look like a wax figure
會像蠟像
When your smile is fake
地球環保講究分類
Recyclables are sorted
人把人分的更到位
Yet we sort people more cautiously
你喜歡他的去那邊
Go there if you like him
留下來的就圍圈圈
Stay here if you’re with us
是你丟我撿的概念
Are you playing catch?
還是真的你情我願
Do you really enjoy this game?
幹嘛不問問自己
Why don’t you ask yourself
是圓是扁
Are you round or flat?
好棒好棒
Hurray! Hurray!
你快樂嗎
Does that make you feel great?
跟他好像
Y’all look similar
一模一樣
Like copy and paste
有事就聽聽自己的 嘻嘻哈哈
Just enjoy your stuff and chill
沒事何必動刀動槍 鏗鏗鏘鏘
Why instead bash and yell?
你說我活得太瘋癲
You say I’m too crazy
我說你才活在封建
I say you’re living in history
把書本讀了幾百遍
You’ve read hundreds of books
結果反而白活一遍
But you can’t live a meaningful life
世界分了東南西北
Cardinal directions were invented
但其實它是一個圓
The world is spherical in reality
要去哪要怎麼過
Where and how to live
都隨你便
Is all up to you
好棒好棒
Hurray! Hurray!
你快樂嗎
Does that make you feel great?
你的長相
How you look
你決定吧
You can decide
有事就聽聽自己的 嘻嘻哈哈
Just enjoy your stuff and chill
沒事何必動刀動槍 鏗鏗鏘鏘
Why instead bash and yell?
我四不像
I’m a Père David's deer
過得不爭也不搶
Never fight and never steal
裝模作樣
If you try to be someone else
反而 歪七扭八 歪七扭八
You end up unsightly without doubt
嘰嘰喳喳
Swoosh, swoosh
耳邊的風呼呼響
The wind is howling
慌慌張張
Instead of panicking
不如 屌兒啷噹 屌兒啷噹
Be nonchalant and carefree
-
【Music Production】
製作人 Producer:錢煒安 Zen Chien、麋先生 MIXER
配唱製作人Vocal Producer:陳又齊 Gyniuz Chen
詞Lyricist:吳聖皓Sheng Hao Wu
曲Composer:林喆安Z-An Lin
編曲 Arrangement:麋先生 MIXER
打擊樂器 Percussion:錢煒安 Zen Chien
鼓技師 Drum Technician:余燦宇 Yu Tsan Yu
錄音工程師 Recording Engineer:錢煒安 Zen Chien、陳祺龍 Chris Chen, 林喆安 Z-An Lin、小B Bosy
錄音室 Recording Studio:112F Recording Studio、麋舍 Misir Studio
混音工程師 Mixing Engineer:錢煒安 Zen Chien
混音錄音室 Mixing Studio:112F Recording Studio
母帶製作工程師 Mastering Engineer:Joe LaPorta
母帶製作錄音室 Mastering Studio:Sterling Sound, NYC
-
【Film Production】
主演 Starring:韓寧 Han Ning
First Camera Unit /
攝影指導 D.O.P.:曾崴榆 Tseng Wei Yu
跟焦員 Focus Puller:林永森Yung Sen Lin
攝影助理 AC:簡志宇 Zhi Yu Jian, 王奕儒 Yi Ru Wang
First Lightning Unit /
燈光師 Gaffer:林宏洋 Yang
燈光助理 Best boy:鄭智遠 Chih Yuan Cheng, 葉丞遠 Cheng Yuan Yeh
Second Camera Unit /
攝影指導 D.O.P.:周家祺 Zhou Jiachi
跟焦員 Focus Puller:李知晏 Juice Lee
攝影助理 AC:賴建志 Kenji Lua
Second Lightning Unit /
燈光師 Gaffer:彭嘉慶 Emile Peng
燈光助理 Best boy:廖孟晉 LIAO MENG JIN, 張寧恩 Nein-N
導演 Director:陳容寛 Chen Jung Kuan
製片 Producer:曾韋鈞 Wally Tseng
製片助理 Production Assistant:孫于凱 Sunkaikai, 王鼎方 Viola Wang
美術指導 Art Director:張銘軒 Min Zhang
美術助理 Art Department Assistant:游傑宇 Willy Yu, 林羿君 Yi Chun Lin
藝人化妝 Make-up:曾芊菱 Cherry
藝人髮型 Hair Stylist:Elsa Yeh, Kevin Hsu, Sanki Wang, Tyker Ho @HAIRMOSA.LAB
造型 Styling:余冠儀 Yee1Yee, 曹偉康 Paulawa
造型助理 Styling Assistant:李紅毅reggie, 陳爰綺 Westyseven
演員妝髮 Make up:吳洛瑄 LoHsuan Wu
剪接 Editor:龍寛 Dragon Wide, 麋先生 MIXER
調光師 Colorist:詹謹嘉 Ben Chan
群眾演員 Extras:皮卡花工作室
平面攝影師 Photographer:林敬倫 Allen Lin
歌詞翻譯Translation:賓狗單字Bingo Bilingual
特別感謝Special Thanks:海國樂器Haikuo Music, 雲耀音樂Ultimate Studios Inc. Taiwan
-
◤ 【嗜愛動物】巡迴演唱會 ◢
▪️ 11/28 台北|12/04 台中|12/05 高雄
▪️ 預售票$1000 / 現場票$1200
▪️ 購票請上拓元售票系統
https://tixcraft.com/activity/detail/...
-
【廢廢】MV| https://youtu.be/ARHTI3G_sk4
【嗜愛動物】是愛版MV| https://youtu.be/1OPl-jhic4k
【嗜愛動物】示愛版Live MV| https://youtu.be/4JNb4fiT1VA

bash if else 在 seanlje Youtube 的精選貼文
It was POURING RAIN on the way there.
--
Super crazy yet fun experience tho.
DISCLAIMER: it was just a simulator la. Life is too short to bash on someone else.
Music by
SENSAYA: Royalty Free Music
Follow me for frequent updates:
Instagram: https://www.instagram.com/seanlje
Twitter: https://www.twitter.com/seanlje
Facebook: https://www.facebook.com/seanlje
Snapchat: SEANLJE
#KeluargaPontimau
#BiahSport
#HeyOrangKita
Please like this video if you liked it and subscribe because I don't bite, except for my lips.
#SUWEK SHIRTS ARE NOW AVAILABLE ON MY FB PAGE (https://www.facebook.com/seanlje)
Ya'll can always support me by buying one of this shirt! Wee!
I love you guys!
x

bash if else 在 In a bash script, using the conditional "or" in an "if" statement 的推薦與評價
If you want to say OR use double pipe ( || ). if [ "$fname" = "a.txt" ] || [ "$fname" = "c.txt" ]. (The original OP code using | was simply piping the ... ... <看更多>
bash if else 在 Bash If-Else Statements - All You Need to Know About 的推薦與評價
Dec 18, 2020 - This article covers the fundamentals of Bash shell scripting and describes if statement, if-else statement, and elif statement. ... <看更多>
bash if else 在 Bash: If/Else statement in one line - Stack Overflow 的推薦與評價
... <看更多>