Skip to content

Instantly share code, notes, and snippets.

View JfrAziz's full-sized avatar
🥷

Jafar Aziz JfrAziz

🥷
View GitHub Profile
@JfrAziz
JfrAziz / docker-compose.yml
Created April 9, 2022 21:59
some random docker compose
version: '3'
volumes:
db:
name: ${DB_CONTAINER:-postgres}
services:
postgres:
image: postgres:alpine
container_name: ${DB_CONTAINER:-postgres}
@JfrAziz
JfrAziz / deploy.yml
Created August 30, 2021 05:25
Github Action Connect to IPSEC / L2TP VPN Connection
name: Greeting from Mona
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy To Server
@JfrAziz
JfrAziz / docker-compose.yml
Last active March 29, 2024 06:24
Install Nginx Proxy Manager and disable port 81 from outside
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
environment:
@JfrAziz
JfrAziz / docker-compose.yml
Last active October 20, 2024 17:56
Run Code Server Using docker-compose
version: "3.1"
services:
vscode:
container_name: vscode
image: codercom/code-server
ports:
- "8080:8080"
volumes:
- ./.config:/home/coder/.config
@JfrAziz
JfrAziz / docker-compose.yml
Created July 20, 2021 04:23
docker compose for deploy ghost using docker
version: '3.8'
services:
ghost:
image: ghost:4-alpine
restart: always
container_name: ghost
ports:
- 8080:2368
@JfrAziz
JfrAziz / APG-4.r
Last active October 19, 2021 08:44
# uji satu sampel
ujiSatuSampel <- function(data_1, miu, sigma = NULL, alpha = 0.05){
X_bar = apply(data_1, 2, mean)
n = nrow(data_1)
p = ncol(data_1)
hasSigma = !is.null(sigma)
if(length(miu) != p) stop("data tidak sama")
@JfrAziz
JfrAziz / APG.r
Last active February 28, 2021 15:41
Tugas APG uhuy
vectorLength <- function(x) {
if(!is.vector(x)) stop("x is not a vector")
return(sqrt(sum(x^2)))
}
vectorAngelCos <- function(x, y){
if(!is.vector(x) || !is.vector(y)) stop("x or y is not a vector")
if(length(x) != length(y)) stop("x and y are not the same length")
# cos value of vector angel of x and y is x'y/(L_x * L_y)