egrep -rl 'kecamatan_id' seeders/* | xargs -I@ sed -i '' 's/kecamatan_id/subdistrict_id/g' @
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" | |
networks: | |
fhir-server: | |
driver: bridge | |
services: | |
fhir: | |
container_name: fhir-server | |
image: hapiproject/hapi:v5.3.0 |
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 React from 'react'; | |
import { | |
Navigate, Route, RouteProps | |
} from 'react-router-dom'; | |
interface PrivateRouteProps extends RouteProps { | |
// tslint:disable-next-line:no-any | |
component: any; | |
isAuthenticated: boolean; | |
} |
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
TextInputFormatter.withFunction((oldValue, newValue) { | |
if (newValue.selection.baseOffset == 0) { | |
return newValue; | |
} | |
double value = double.parse(newValue.text); | |
final formatter = NumberFormat.simpleCurrency( | |
locale: "nok", | |
); |
- Add user ->
sudo adduser <new-user>
- Add new user to root group
usermod -aG sudo <new-user>
su <new-user>
-> switch to new user- Run
<new-user>
as root withsudo visudo
- Add new line
<new-user> ALL=(ALL) NOPASSWD:ALL
and save it - exit the user and try su
<new-user>
again - Update and upgrade OS
apt-get update && sudo apt-get upgrade
apt install vim
-> installing vim
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/bash | |
# See at link below for update | |
# https://gist.github.com/darmawan01/b600707ba10d1c2f4267717c69904336 | |
if [ "$1" = "init" ]; then | |
docker run -d --name gitlab-runner \ | |
--restart always \ | |
--privileged \ | |
-v $(pwd):/etc/gitlab-runner \ |
# fix wrong driver
echo '{ "storage-driver": "devicemapper" }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
# fix aliyun buggy selinux
sudo sed -i 's/SELINUXTYPE=mcs/SELINUXTYPE=targeted/' /etc/selinux/config
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 'dart:async'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
class CustomToast { | |
static OverlayEntry _overlayEntry; | |
static OverlayEntry _overlayEntry1; | |
static bool isVisible = false; | |
static Timer _timer; |