- for local development
- read env config from configmap data section
- replace application.yml with configmap data
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
<!doctype html> | |
<body> | |
<style> | |
.alert { | |
padding: 15px; | |
border: 1px solid #d6e9c6; | |
border-radius: 4px; | |
color: #3c763d; | |
background-color: #dff0d8; | |
} |
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
// berhasil | |
let login = 'adobe' | |
fetch(`https://api.github.com/users/${login}`) | |
.then(res => res.json()) | |
.then(response => console.log('Success:', JSON.stringify(response))) | |
.catch(error => console.error('Error:', error)); | |
// gagal | |
let login = 'asdasdasdasdasdasd' | |
fetch(`https://apixxxxxxx.github.com/users/${login}`) |
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
" Text with spaces ".replace(/ +/g, ' ').trim() |
wusa /uninstall /kb:5014697
temporary until ms fixed it disable via group policy edit > "Computer Configuration" > "Administrative Templates" > "Windows Components" > "Windows Update" : "Disabled" in Configured Automatic Updates
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
#!/bin/sh | |
# for admin user | |
if [[ "$EUID" != 0 ]]; then | |
sudo -k # next sudo, ask for password | |
if sudo true; then | |
echo "Password ok" | |
else | |
echo "Password error" | |
exit 1 | |
fi |
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
sudo chown -R $(whoami) $(brew --prefix)/Caskroom/ | |
sudo chown -R $(whoami) $(brew --prefix)/Cellar/ |
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
const eOMonth = (date) => (new Date(date.getFullYear(),date.getMonth()+1,0)) | |
const formattedDate = (date) => (date.getFullYear() + '-' + String(date.getMonth() + 1).padStart(2, '0') + '-' + String(date.getDate()).padStart(2, '0')) | |
/// test today, prev month | |
const today = new Date() | |
const prevMonthStartDate = new Date(today.getFullYear(),today.getMonth()-1,1) | |
const prevMonthEndDate = new Date(today.getFullYear(),today.getMonth(),0) | |
console.log(formattedDate(today)) | |
console.log(formattedDate(prevMonthStartDate)) |
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
HEADER=Satu Dua,Dan Tiga,Empat Lima Enam | |
KEY=satu.dua,dan.tiga,empat.lima.enam |
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
diskpart | |
list disk | |
select disk 1 | |
attributes disk clear readonly | |
online disk | |
select disk 1 | |
clean | |
convert gpt | |
create partition primary | |
#format quick fs=ntfs label="data" unit=64k |
NewerOlder