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 / Big List Of 20 Common Bottlenecks.md
Last active October 28, 2021 04:01
Big List Of 20 Common Bottlenecks

http://highscalability.com/blog/2012/5/16/big-list-of-20-common-bottlenecks.html

Big List Of 20 Common Bottlenecks

WEDNESDAY, MAY 16, 2012 AT 9:15AM

In Zen And The Art Of Scaling - A Koan And Epigram Approach, Russell Sullivan offered an interesting conjecture: there are 20 classic bottlenecks. This sounds suspiciously like the idea that there only 20 basic story plots. And depending on how you chunkify things, it may be true, but in practice we all know bottlenecks come in infinite flavors, all tasting of sour and ash.

One day Aurelien Broszniowski from Terracotta emailed me his list of bottlenecks, we cc’ed Russell in on the conversation, he gave me his list, I have a list, and here’s the resulting stone soup.

@adibenc
adibenc / parser.py
Created July 26, 2020 03:39
Parse trello
import json
from collections import namedtuple
trelloFileName = "trello-ehSCdYmQ.json"
def parse(isi):
data = json.loads(isi, object_hook=lambda d: namedtuple('X', d.keys())(*d.values()))
return data
isi = open(trelloFileName,"r").read()
import requests
from bs4 import BeautifulSoup
url = "https://news.ycombinator.com/"
upvoted = "upvoted?id=your.user.id&p="
fmt = "hn{}.html"
iframe = """<iframe src="{}" title="description" height="1500" width="800"></iframe>"""
cookies = {
"user":"your cookie"
}
@adibenc
adibenc / fluent-forever-wordlist.md
Last active October 28, 2021 03:51
The Most Awesome Word List You Have Ever Seen ( not for bruteforce )

Your First 625 Words (in Thematic Order, with notes):

https://blog.fluent-forever.com/base-vocabulary-list/

Key: Category words (i.e. ‘animal’) are designated with a little superscript C (Like thisC). Learn these words word by using 2-3 other pictures/words on your flashcards (i.e. ‘animal = dog, cat, fish…’).

Easily Confounded Images (i.e., ‘girl’ looks like ‘daughter’) are designated with an asterisk (Like this*). These are groups of words that will use very similar images (girl/daughter, marriage/wedding). Learn these words by adding a personal touch (i.e., the name of a ‘daughter’ you might know) or an additional word or two in your target language (i.e., daughter might go with mother/father).

Animal: dog, cat, fish, bird, cow, pig, mouse, horse, wing, animalC

@adibenc
adibenc / mat pca uts.r
Created October 6, 2021 13:38
mat pca uts.r
library(ggplot2)
cr = function(d){
print(c(
nrow(d), ncol(d)
))
}
ple = function(d){
print(length(d))
@adibenc
adibenc / dummy.js
Created July 9, 2021 09:33
node js dummy
const express = require('express')
const constants = require('../app/constants')
var dummy = express.Router()
const fs = require('fs')
function tofile(content, fname){
return fs.writeFile(fname, content, err => {
if (err) {
console.error(err)
return
cd /
whoami
ls
ls -ahl
ls -1
ls -talh
https://nasional.kompas.com/read/2018/09/03/15212761/fenomena-sumbu-pendek-dan-literasi-digital-di-indonesia?page=all#page2
JAKARTA, KOMPAS.com – Di Indonesia, istilah ‘sumbu pendek’ digunakan untuk menyebut kalangan netizen yang mudah termakan isu dan terprovokasi tanpa mencari tahu kebenaran tentang suatu persoalan. Istilah ini mengacu pada sumbu di kompor minyak yang akan mudah terbakar jika tali sumbu sebagai penyalur bahan bakarnya berukuran pendek. Artinya, tanpa melalui proses kapilaritas memadai, api dalam sekejap langsung menyala di sebuah kompor. Jika diimplementasikan pada kondisi saat ini, "sumbu pendek" dipahami sebagai seseorang yang menyerap informasi tanpa melakukan kroscek terlebih dahulu dan mudah terpancing. Selanjutnya, biasanya, si "sumbu pendek" akan menyebarluaskan informasi itu yang bisa memancing orang lain melakukan hal yang serupa. Hal ini pula yang terjadi selama penyelenggaraan Asian Games 2018 yang berlangsung pada Minggu (2/9/2018). Baca juga: WhatsApp Bangun Literasi Digital T
src : https://m.facebook.com/story.php?story_fbid=2690252147925686&id=100008227817040
@Rendy Putra
JAWABAN
Sering saya kampanyekan ke setiap masjid, agar setiap masjid membuat dapur umum. Program masjid jangan numpuk di ta'lim dan kajian. Program pendidikan itu bagus, tapi kalo yang datang itu itu saja, masjid harus muhasabah keras. Di zaman Rasulullah Shallallahu'alaihi wassalam, masjid dan baitul maal itu satu entitas. Maka masjid adalah tempat meminta jika berkekurangan. Baitul maal mengelola dana zakat dan bantuan untuk para dhuafa. Itulah yang seharusnya diikuti oleh masjid-masjid yang ada hari ini. Mampu menjawab masalah sosial ummat. Jika ada yang lapar, masjid sedia bisa ngasih makan. Itu dicontohkan Nabi.
Saya dan tim pernah kelola masjid wakaf keluarga. Setiap hari masjid yang kami kelola memberi makan pagi 40 sd 50 porsi. Lalu setiap malam hari kami sediakan 300 sd 600 porsi. Bukan hanya di buka puasa sunnah senin kamis, tapi hampir setiap malam.
Melayani jamaah yang merapat ke masjid. Siapapu
@adibenc
adibenc / get it when free : cyber security course
Created April 22, 2021 13:26
get it when free : cyber security course
https://www.udemy.com/course/microsoft-cybersecurity-pro-track-threat-detection/?couponCode=1A76637CC36B6117C06B
https://www.udemy.com/course/certified-ethical-hacker-ceh-practice-tests-2021/
https://www.udemy.com/course/reverse-engineering-debugging-and-malware-analysis-2021/
https://www.udemy.com/course/ethical-hacking-capture-the-flag-walkthroughs/
https://www.udemy.com/course/ethical-hacking-capture-the-flag-walkthroughs-v2/?couponCode=1B6C72E609745BCB52DA
https://www.udemy.com/course/ethical-hacking-capture-the-flag-walkthroughs-v3/?couponCode=D407D6024939D868F139