Skip to content

Instantly share code, notes, and snippets.

View adibenc's full-sized avatar
🎯
Focusing

M Adib zamzam adibenc

🎯
Focusing
View GitHub Profile
@adibenc
adibenc / tmux.md
Created March 4, 2018 14:08 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@adibenc
adibenc / flagize.py
Created August 9, 2019 09:12
ctf Flagger
#!/usr/bin/python
# autoflag your text
import random
charset={
" ":["_"],
"!":["!"],
"\"":["\""],
"#":["#"],
"$":["$"],
@adibenc
adibenc / coba3.php
Last active August 24, 2019 13:10
4 devi
<?php
require_once('koneksi.php');
$sql = mysqli_query($conn, "SELECT id_data, tempat_wisata, dcuaca, djumlah_pengunjung, dspot_wisata, dtiket_wisata, dfasilitas_umum
FROM data, alternatif where data.id_alt=alternatif.id_alternatif");
//Pembagi
while ($data1= mysqli_fetch_array($sql)){
$c[] = pow($data1['dcuaca'],2);
$j[] = pow($data1['djumlah_pengunjung'],2);
@adibenc
adibenc / 3.py
Last active September 5, 2019 09:13
# import serial
import re
import time
import csv
# import mysql.connector
# from mysql.connector import Error
# from mysql.connector import errorcode
from datetime import datetime
from pprint import pprint
@adibenc
adibenc / crawl lis
Last active September 28, 2019 15:14
java text get from wiktionary
#!/usr/bin/python
# crawl
from bs4 import BeautifulSoup as bs4
# import MySQLdb
# import os
# from Connection import *
def getlitext(f):
@adibenc
adibenc / cmd-bookmark-gen.py
Created October 16, 2019 09:15
sh bookmark generator in py
import string
"""
sort of meta-programming generator
likethis
function dibch(){
echo "
1 /media/c/
2 /media/c/play/
@adibenc
adibenc / dibsh.sh
Last active October 16, 2019 09:31
sh cmd bookmark result
#sh cmd bookmark result
function f(){
echo "1 cd ./domains/mmasjid.com/dev
2 cd ./domains/mmasjid.com/dev/
3 git add .
4 git add .gitignore
5 git branch
6 git branch dev
7 git branch -l
8 git branch --set-upstream-to=origin/adib adib
<?php
//integralnya kd
//by adib
function f1($x=1){
return
($x**3-22*($x**2))/8
-
((1/24)*$x**3)
;
@adibenc
adibenc / text2img.py
Last active October 26, 2019 15:06
text 2 image, japan
# -*- coding: utf-8 -*-
# text 2 img
from PIL import Image, ImageDraw, ImageFont
bg={
'white':(255, 255, 255),
'red':(160, 0, 0),
'darkblue':(0, 0, 80),
'db2':(25, 50, 100),
@adibenc
adibenc / mq-simpandata
Created October 27, 2019 10:17
mq-simpandata
/**
BasicHTTPClient.ino
Created on: 24.05.2015
*/
#include <Arduino.h>