Skip to content

Instantly share code, notes, and snippets.

View darmawan01's full-sized avatar
🏠
Working from home

Dz darmawan01

🏠
Working from home
  • Indonesia
View GitHub Profile
@darmawan01
darmawan01 / # - Jitsi meet - easy setup with custom config .md
Created July 23, 2024 23:42 — forked from AndreiTelteu/# - Jitsi meet - easy setup with custom config .md
Jitsi meet - easy setup with custom config - customizations are: removed all branding, removed every unnecesary button
@darmawan01
darmawan01 / omama.MD
Created June 19, 2023 17:29
SSH Issue on windows PowerShell or WSL

Poweshell (Admin)

Get-Service ssh-agent | Set-Service -StartupType Automatic -PassThru | Start-Service

WSL

eval `ssh-agent` && ssh-add
@darmawan01
darmawan01 / 00_etc-hosts.md
Created April 27, 2023 12:31 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Reddit, Imgur, GitHub, DigitalOcean, dll

Unblock Steam, Vimeo, Reddit, Imgur, GitHub, DigitalOcean, NPM, PayPal, dll

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

@darmawan01
darmawan01 / docker-compose.yml
Last active June 5, 2023 05:28
Matrix Synapse
version: '3'
networks:
synapse:
driver: bridge
services:
certbot:
image: certbot/certbot
command: certonly --webroot --webroot-path=/var/www/html --email me@gmail.com --agree-tos --no-eff-email -d my-domain.com
@darmawan01
darmawan01 / floating_action_button.dart
Created March 26, 2023 14:44
Floating action buttons with vertical expanded animation
import 'package:flutter/material.dart';
class CustomFloatingActionButton extends StatefulWidget {
const CustomFloatingActionButton({super.key});
@override
FloatingActionButtonState createState() => FloatingActionButtonState();
}
class FloatingActionButtonState extends State<CustomFloatingActionButton>
@darmawan01
darmawan01 / config.dart
Created March 24, 2023 01:10
Call Keep
import 'package:flutter_callkeep/flutter_callkeep.dart';
CallKeepBaseConfig callKeepBaseConfig = CallKeepBaseConfig(
appName: 'Matrix POC',
androidConfig: CallKeepAndroidConfig(
logo: "ic_logo",
showCallBackAction: true,
showMissedCallNotification: true,
ringtoneFileName: '',
accentColor: '#0955fa',
@darmawan01
darmawan01 / dounat.tsx
Created March 14, 2023 06:06
Example of making text inside dougnat chart js
```
<Doughnut
data={data}
options={{
cutout: '70%',
}}
plugins={[
{
id: "title",
beforeDraw: function (chart) {
@darmawan01
darmawan01 / time.go
Created December 22, 2022 13:06
Custom Time Marshal/Unmarshal from unix milisecond
package types
import (
"database/sql/driver"
"fmt"
"strconv"
"strings"
"time"
)
@darmawan01
darmawan01 / README.md
Last active August 3, 2022 09:55
IBM FHIR Server
@darmawan01
darmawan01 / helper.ts
Created August 2, 2022 01:59
Duplicate file with replacer content using typescript
export const createACopy = (
sourceFile: string,
destFile: string,
matchers: string[],
replacer: string[],
) => {
// Import the filesystem module
const filePath = path.join(`${process.cwd()}/path/`, sourceFile);
let programSource = readFileSync(filePath).toString();