Skip to content

Instantly share code, notes, and snippets.

@igun997
igun997 / install-openvpn.sh
Created May 31, 2025 17:50
OpenVPN Scripts
#!/bin/bash
#########################################################################
# OpenVPN Server One-Click Installer with Anti-Detection Features
# Author: Assistant
# Description: Complete automated OpenVPN server setup
# Usage: curl -O https://raw.githubusercontent.com/your-repo/openvpn-installer.sh && sudo bash openvpn-installer.sh
#########################################################################
set -e
@igun997
igun997 / setup-magic-dev.sh
Last active May 19, 2025 06:36
setup-magic-dev.sh
#!/bin/bash
# Script to set up Commitizen, release-it, quick-prettier, ESLint, Husky, and commitlint
# for an existing JavaScript project (NextJS/ReactJS)
echo "🚀 Starting automated setup for development tools..."
# Check if package.json exists (to confirm we're in a JS project)
if [ ! -f package.json ]; then
echo "❌ Error: package.json not found. Please run this script in the root of your JavaScript project."
@igun997
igun997 / install-zed-tarbal.sh
Last active April 24, 2025 16:05
Install Zed from Tarball
#!/usr/bin/env bash
set -euo pipefail
# Configuration
ZED_VERSION="${1:-0.183.10}" # Default to latest known version if none provided
ARCH="$(uname -m)"
PLATFORM="linux"
INSTALL_DIR="$HOME/.local/zed-$ZED_VERSION"
BIN_DIR="$HOME/.local/bin"
TARBALL_URL="https://github.com/zed-industries/zed/releases/download/v${ZED_VERSION}/zed-linux-x86_64.tar.gz"
@igun997
igun997 / keybase.md
Created August 30, 2021 03:24
keybase.md

Keybase proof

I hereby claim:

  • I am igun997 on github.
  • I am igun997 (https://keybase.io/igun997) on keybase.
  • I have a public key ASCn3OwvkWPphZdKfVZVWpLruzclqUzkEwqybeK8rvvuSQo

To claim this, I am signing this object:

@igun997
igun997 / index.html
Created August 29, 2021 02:25
Raport Template
<html>
<body>
<h2
align="left"
>
<img
src="https://via.placeholder.com/52x52?text=LOGO"
alt=""
@igun997
igun997 / maps.html
Created November 28, 2020 16:17
maps
<html>
<body>
<div id="map" style="width:auto;height:500px">
<p>test</p>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyD1cM44pjtWnEej7CgCeCVtYx5D70ImTdQ"></script>
<script src="./gmaps.js"></script>
<script>
map = new GMaps({
@igun997
igun997 / check.php
Created November 25, 2020 11:45
Checker BPOM
<?php
$bpom = "NA1820010782-6";
$target = "https://cekbpom.pom.go.id/";
$session = "";
$header = array('Accept-Language: en');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $target);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
@igun997
igun997 / composer.json
Created January 21, 2020 15:59
Boilerplate Package
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
@igun997
igun997 / uint8_converter
Last active August 25, 2019 12:23 — forked from borismus/gist:1032746
Convert a base64 string into a binary Uint8 Array
var BASE64_MARKER = ';base64,';
function convertDataURIToBinary(dataURI) {
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
var base64 = dataURI.substring(base64Index);
var raw = window.atob(base64);
var rawLength = raw.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
for(i = 0; i < rawLength; i++) {
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @author Indra Gunanda
*/
class Absensi extends CI_Controller{
/**
* Konstruktor
*
* @return void