Skip to content

Instantly share code, notes, and snippets.

Avatar

Alfian Oktafireza alfianokt

View GitHub Profile
@alfianokt
alfianokt / data.sql
Last active Jul 24, 2021
GridJS CodeIgniter 4
View data.sql
CREATE TABLE `karyawan` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`nama` varchar(255) default NULL,
`alamat` varchar(255) default NULL,
`email` varchar(255) default NULL,
`hp` varchar(100) default NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=1;
INSERT INTO `karyawan` (`nama`,`alamat`,`email`,`hp`) VALUES ("Quamar Gary","399-8816 Magna. Street","Curabitur@ornarelibero.ca","0956-3139-1130"),("Rhea Elijah","P.O. Box 439, 575 Arcu. Avenue","non.sapien@at.edu","0517-6109-6664"),("Ezra Candice","Ap #843-1600 Lobortis Ave","varius.ultrices.mauris@venenatisvel.com","0249-3215-7097"),("Cecilia Aimee","123 Suspendisse Street","augue.porttitor@Utsagittis.com","0637-3951-5133"),("Tatiana Kylie","P.O. Box 532, 3979 Amet, Road","dolor.Donec@Curabitur.net","0659-2681-9519"),("Whilemina Reuben","461-6996 Mauris Street","blandit@facilisisfacilisis.net","0509-3069-2778"),("Lunea Jada","978-3168 Dui. St.","senectus.et.netus@sit.com","0586-8853-9867"),("Bree Doris","3765 Eleifend, St.","sit.amet.diam@lacusv
@alfianokt
alfianokt / main.js
Created Mar 21, 2021
Nodejs POST file from local
View main.js
/**
* Upload local image to telegraph using nodejs
*
* @alfianokt
* 20-03-2021
*
*/
const fs = require('fs');
const axios = require('axios').default;
View via-logo-from-telegram.html
<div id="photo">😎</div>
<script>
/**
* Via (Android Browser) Custom Image
*
* Change image logo in via app with telegram photo profile
*
* How to use? Open Via > Settings > Customization > Logo > HTML Code, Then paste this script (change the username var with ur username)
*
* alfianokt || 29-11-1019
@alfianokt
alfianokt / miniImg.py
Created Aug 28, 2019
Batch minimize image
View miniImg.py
# author : alfian oktafireza | alfianokt
# desc : minimize masal gambar
import glob, os
from PIL import Image
# read all files with format .jpg
listImg = glob.glob("*.jpg")
for i in listImg:
# show file name
View shtid.php
<?php
/***
Site : http://www.tool.eddiekidiw.com/phpobfuscator-v-02.html
Date : 2019-04-13
Day : Saturday
Time : 11:06:00
Ipaddress : 120.188.76.226
Hostname : 120-188-76-226.resources.indosat.com
City : Jakarta
Country : ID
@alfianokt
alfianokt / TelegramBot.gs
Created Mar 24, 2019
Minimum System Telegram Bot With Google App Script
View TelegramBot.gs
/*
ubah variabel token dengan token bot kalian
simpan projek di Google App Script, lalu publish Dan pilih deploy as web app
ubah izin akses menjadi anyone, even anonymous lalu publish dan salin url nya
setWebhook bot telegram dengan url dari google tadi
jika ada pertanyaan silahkan kontak saya via telegram @alfian_oktafireza
*/