Skip to content

Instantly share code, notes, and snippets.

View luthfianto's full-sized avatar

Rizky Luthfianto luthfianto

View GitHub Profile
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@luthfianto
luthfianto / Dockerfile
Last active April 5, 2025 10:18
Dockerfile for maxcompute environment
# https://www.alibabacloud.com/help/en/maxcompute/user-guide/develop-a-spark-on-maxcompute-application-by-using-pyspark#section-0q7-5da-5vt
FROM ubuntu
RUN apt update && apt -y install python3 python3-pip python3-venv zip && apt clean
RUN python3 -m venv mantap
RUN mantap/bin/pip install catboost lightgbm xgboost scikit-learn
RUN zip -r mantap.zip mantap/
version: '3'
services:
clickhouse-server:
image: clickhouse/clickhouse-server
container_name: clickhouse-server
volumes:
# - ./config.xml:/etc/clickhouse-server/config.xml
- ./data:/var/lib/clickhouse
ports:
- "8123:8123" # HTTP port
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 10 columns, instead of 6 in line 7.
Display Name Name State Start Mode Service Type Path Error Control Start Name Tag ID
AllJoyn Router Service AJRouter Stopped Disabled Share Process c:\windows\system32\svchost.exe -k localservicenetworkrestricted -p Normal NT AUTHORITY\LocalService 0
Application Layer Gateway Service ALG Stopped Disabled Own Process c:\windows\system32\alg.exe Normal NT AUTHORITY\LocalService 0
Application Identity AppIDSvc Stopped Manual Share Process c:\windows\system32\svchost.exe -k localservicenetworkrestricted -p Normal NT Authority\LocalService 0
Application Information Appinfo Running Manual Share Process c:\windows\system32\svchost.exe -k netsvcs -p Normal LocalSystem 0
App Readiness AppReadiness Stopped Manual Share Process c:\windows\system32\svchost.exe -k appreadiness -p Normal LocalSystem 0
AppX Deployment Service (AppXSVC) AppXSvc Running Manual Share Process c:\windows\system32\svchost.exe -k wsappx -p Normal LocalSystem 0
Windows Audio Endpoint Builder AudioEndpointBuilder Running Auto Share Process c:
{
"user": {
"id": 2,
"age" : 23
},
"courses": [
{
"id": 2,
"skills": ["coding", "python"],
"tags": []
L
e|--------------------------------7-7---7--------------------------|
B|9-9-7-9-----------5-7-9-7-5-7-9-----9-------------5-7-9-7-5-7-5--|
G|-----------------------------------------------------------------|
D|-----------------------------------------------------------------|
A|-----------------------------------------------------------------|
E|-----------------------------------------------------------------|
L
e|-----------------------------------------------------------------|
L
e|--------------------------------7-7---7--------------------------|
B|9-9-7-9-----------5-7-9-7-5-7-9-----9-------------5-7-9-7-5-7-5--|
G|-----------------------------------------------------------------|
D|-----------------------------------------------------------------|
A|-----------------------------------------------------------------|
E|-----------------------------------------------------------------|
L
e|-----------------------------------------------------------------|
DF_COLUMN_NAME_DEALER = "Group Dealer Code"
## Formula
def f_RS_n(stock_nm1, distplan_n, target_n, target_np1):
def f_stock_n(stock_nm1, distplan_n, target_n):
return stock_nm1 + distplan_n - target_n
def _RS_n(stock_n, target_np1):
return stock_n / np.where(target_np1==0,1, target_np1)
import urllib
import asyncio
loop = asyncio.get_event_loop()
import pandas as pd
df=pd.read_csv("ktp-npwp-o.csv"); df.head()
async def aaa(row):
filename=row.image_url.split("/")[-1]
folder_name= row.image_type.lower()
/**
*
* @param {unknown[]} arr
* @return {unknown[]}
*/
function mergeSort(arr) {
if (arr.length === 1) {
return arr;
}