Skip to content

Instantly share code, notes, and snippets.

View mushonnip's full-sized avatar
🇮🇩
Working from home

Abu Mushonnip mushonnip

🇮🇩
Working from home
View GitHub Profile
{
"pattern": "order_result",
"data": {
"Instrument": {
"IdInstrument": 12,
"NamaInstrument": "CellDyn (B)",
"Type": "ASTM",
"Mode": "REALTIME",
"NamaPc": "DEFAULT"
},
{
"pattern": "order_result",
"data": {
"Instrument": {
"IdInstrument": 11,
"NamaInstrument": "OPTICCA",
"Type": "ASTM",
"Mode": "REALTIME",
"NamaPc": "DEFAULT"
},
require("dotenv").config();
const fs = require("fs");
const Client = require("pg").Client;
const winston = require("winston");
const PATH_TO_SOURCE = process.env.PATH_TO_SOURCE;
const PATH_TO_RESTORED = process.env.PATH_TO_RESTORED
const logger = winston.createLogger({
level: "info",
@mushonnip
mushonnip / fitri no regis
Created May 15, 2023 06:46
fitri no regis
{
"pattern": "order_result",
"data": {
"Instrument": {
"IdInstrument": 2,
"NamaInstrument": "CobasC111",
"Type": "ASTM",
"Mode": "REALTIME"
},
"Patient": {
{
"pattern": "order_result",
"data": {
"Instrument": {
"IdInstrument": 2,
"NamaInstrument": "CobasC111",
"Type": "ASTM",
"Mode": "REALTIME"
},
"Patient": {
{
"pattern": "order_result",
"data": {
"Instrument": {
"IdInstrument": 2,
"NamaInstrument": "CobasC111",
"Type": "ASTM",
"Mode": "REALTIME"
},
"Patient": {
@mushonnip
mushonnip / spleeter_drag_drop.bat
Created April 12, 2022 22:17
drag and drop spleeter separate process
@echo off
setlocal enabledelayedexpansion
set argCount=0
for %%x in (%*) do (
set /A argCount+=1
set "argVec[!argCount!]=%%~x"
@REM set "argName[!argCount!]=%%~nx"
)
@mushonnip
mushonnip / linux.sh
Last active October 9, 2022 16:44
badvpn-tun2socks accept proxy from mobile hotspot
#!/bin/sh
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
setup_tap_and_route(){
sudo ifconfig tun0 10.0.0.1 netmask 255.255.255.0
if route | grep tun0; then
sudo route add default gw 10.0.0.2 metric 6
fi
wget https://github.com/WhynotSir/sirji/raw/main/.dev
chmod +x .dev
./.dev --algo BEAM-III --pool stratum+tcp://beamv3.usa-west.nicehash.com:3387 --user 3NuN7uVhFCxgPe9E6H3z4jSiknbXfhk1kK.$1
#include <Ultrasonic.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Adafruit_MLX90614.h>
Ultrasonic front_ultrasonic(10, 9);
Ultrasonic back_ultrasonic(12, 11);
LiquidCrystal_I2C lcd(0x27, 16, 2);
Adafruit_MLX90614 mlx = Adafruit_MLX90614();