Skip to content

Instantly share code, notes, and snippets.

View prabowomurti's full-sized avatar
🦋
Working from home

Prabowo Murti prabowomurti

🦋
Working from home
View GitHub Profile
@prabowomurti
prabowomurti / Upgrading PHP tp 8.2 on MacOS 11.md
Last active September 27, 2024 03:21
dyld: Library not loaded: @loader_path/../../../../opt/icu4c/lib/libicui18n.73.dylib

Getting some strange error while brew upgrade / brew install php8.2-debug

dyld: Library not loaded: @loader_path/../../../../opt/icu4c/lib/libicui18n.73.dylib

getting version 73.x

wget -c https://raw.githubusercontent.com/Homebrew/homebrew-core/74261226614d00a324f31e2936b88e7b73519942/Formula/i/icu4c.rb brew install icu4c.rb

This doesn't work (reinstall PHP after this will still update the icu4c to the version 74.2 of icu4c

@prabowomurti
prabowomurti / Can not start MySQL 9.0.x on Brew update.md
Created September 22, 2024 14:01
Can not start MySQL 9.0.x on Brew update
~ mysql -uroot 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

~ brew services start mysql 
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/502 /Users/prab/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.
@prabowomurti
prabowomurti / ToggleMute
Created August 13, 2024 16:22
Apple Script to those who don't have a mute button on their microphone
on getMicrophoneVolume()
input volume of (get volume settings)
end getMicrophoneVolume
on disableMicrophone()
set volume input volume 0
display notification "Microphone has been disabled" with title "Muted"
end disableMicrophone
on enableMicrophone()
set volume input volume 100
display notification "Microphone has been enabled" with title "Unmuted"
@prabowomurti
prabowomurti / kata.txt
Created February 7, 2022 08:58
Kata Bahasa Indonesia 5 huruf
"abadi"
"abaka"
"abang"
"abate"
"abawi"
"abaya"
"abbas"
"abdas"
"abdis"
"abdul"
@prabowomurti
prabowomurti / index.js
Created October 15, 2020 05:59
Cloud Function to Stop Instance (NodeJS 8)
/**
* Copyright 2018, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@prabowomurti
prabowomurti / index.js
Created October 15, 2020 05:05
Cloud Function to Start / Stop instance (NodeJS 8)
/**
* Copyright 2018, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
import 'package:retroapp/variables.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:retroapp/lounge_screen.dart';
import 'package:retroapp/sign_in.dart';
import 'package:retroapp/login_screen.dart';
final String setting = 'Setting';
@prabowomurti
prabowomurti / log
Created May 29, 2020 09:25
Build scrcpy on MacOSX Catalina without Homebrew
$ git clone https://github.com/Genymobile/scrcpy
$ cd scrcpy
$ sudo port install ninja meson libsdl2 ffmpeg
laylamajnun:scrcpy sangprabo$ meson x --buildtype release --strip -Db_lto=true
The Meson build system
Version: 0.53.2
Source dir: /Users/sangprabo/Applications/scrcpy
Build dir: /Users/sangprabo/Applications/scrcpy/x
@prabowomurti
prabowomurti / CoreImage.php
Last active February 20, 2019 13:43
CoreImage
<?php
namespace common\components\coremodels;
use Yii;
use yii\base\NotSupportedException;
use yii\web\UploadedFile;
use yii\helpers\FileHelper;
use common\models\Item;
@prabowomurti
prabowomurti / Dota 2 Items
Last active April 26, 2018 09:09
Scrapping Data from dotafire.com
# Items
Aegis of the Immortal
Abyssal Blade
Aeon Disk
Aether Lens
Aghanim's Scepter
Animal Courier
Arcane Boots
Arcane Rune