Skip to content

Instantly share code, notes, and snippets.

jQuery(document).ready(function($) {
// Start ready block
// if ($.fn.datetimepicker) {
// $('#incident_date_time').datetimepicker({
// format: 'Y-m-d H:i',
// step: 5
// });
// }
@alfajrimutawadhi
alfajrimutawadhi / deploy-laravel-id.md
Last active April 24, 2024 08:50
Cara deploy Laravel ke server (VPS)

Cara deploy aplikasi Laravel ke server (VPS)


Beberapa hal yang kamu perlukan :

  • project Laravel
  • VPS / Virtual Private Server
  • Domain (jika punya)

Berikut cara deploy aplikasi Laravel kamu ke server

  1. Letakkan project Laravelmu ke source code management (github/gitlab/yang lain)
    Disini saya akan menggunakan repository company-management saya.
@EDM115
EDM115 / sudo on PowerShell.md
Created April 24, 2024 08:45
sudo on PowerShell

sudo on PowerShell

Microsoft plans on adding a sudo like command on windows (info and controversy)
But what if... you could already use it ? ๐Ÿคญ

Prerequisites

  • Have the newer version of powershell installed.
    If you plan on using the old one, replace pwsh with powershell
@aradalvand
aradalvand / DockerfileForSvelteKit.md
Last active April 24, 2024 08:49
Dockerfile and .dockerignore for SvelteKit:

*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.

Dockerfile:

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
@falatop
falatop / hello.c
Created April 24, 2024 08:48
Mon Hello World
int main()
{
printf("Hello World");
return 0;
}
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active April 24, 2024 08:47
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@guillaumevincent
guillaumevincent / README.md
Last active April 24, 2024 08:44
Windows Service with Python 3.5 and pyinstaller
@Pusnow
Pusnow / CS ๋ถ„์•ผ ์šฐ์ˆ˜ ํ•™์ˆ ๋Œ€ํšŒ ๋ชฉ๋ก.csv
Last active April 24, 2024 08:42
CS ๋ถ„์•ผ ์šฐ์ˆ˜ ํ•™์ˆ ๋Œ€ํšŒ ๋ชฉ๋ก
์•ฝ์ž ํ•œ๊ตญ์ •๋ณด๊ณผํ•™ํšŒ (2020) BK21ํ”Œ๋Ÿฌ์Šค IF (2018) KAIST CS (2022) SNU CSE (2023.9) POSTECH CSE (2023.10) ํ‰๊ท  (์ •๊ทœํ™”) ํ•™ํšŒ๋ช… DBLP Key
AAAI ์ตœ์šฐ์ˆ˜ 4 O O ์ตœ์šฐ์ˆ˜ 1.00 AAAI Conference on Artificial Intelligence (AAAI) conf/aaai
AAMAS ์šฐ์ˆ˜ 2 0.20 International Joint Conference on Autonomous Agents & Multiagent Systems (AAMAS) conf/atal
ACCV ์šฐ์ˆ˜ 1 ์šฐ์ˆ˜ 0.25 Asian Conference on Computer Vision (ACCV) conf/accv
ACL ์ตœ์šฐ์ˆ˜ 4 O O ์ตœ์šฐ์ˆ˜ 1.00 Annual Meeting of the Association for Computational Linguistics (ACL) conf/acl
ACL Findings ์šฐ์ˆ˜ 0.10 Findings of ACL series/findacl
ACSAC ์šฐ์ˆ˜ 2 ์šฐ์ˆ˜ 0.30 Annual Computer Security Applications Conference (ACSAC) conf/acsac
AIED ์šฐ์ˆ˜ 0.10 International Conference on Artificial Intelligence in Education (AIED) conf/aied
AISTATS ์šฐ์ˆ˜ 1 ์šฐ์ˆ˜ 0.25 International Conference on Artificial Intelligence and Statistics (AISTATS) conf/aistats
ANCS ์šฐ์ˆ˜ 1 ์šฐ์ˆ˜ 0.25 Symposium on Architectures for Networking and Communications Systems (ANCS) conf/ancs
@martinfeldman
martinfeldman / configuration.nix
Created June 16, 2023 18:36
my current nix configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running โ€˜nixos-helpโ€™).
{ config, pkgs, inputs, ... }:
{
@fabiomsr
fabiomsr / ByteArray.kt
Last active April 24, 2024 08:41
ByteArray and String extension to add hexadecimal methods in Kotlin
private val HEX_CHARS = "0123456789ABCDEF".toCharArray()
fun ByteArray.toHex() : String{
val result = StringBuffer()
forEach {
val octet = it.toInt()
val firstIndex = (octet and 0xF0).ushr(4)
val secondIndex = octet and 0x0F
result.append(HEX_CHARS[firstIndex])