Skip to content

Instantly share code, notes, and snippets.

View zmiftah's full-sized avatar
💭
Waiting List ...

Zein Miftah zmiftah

💭
Waiting List ...
  • West Java, Indonesia
View GitHub Profile
@zmiftah
zmiftah / pop.md
Last active July 30, 2024 21:23
The 100 Most Popular Free Online Courses (2024)

Summary

In 2023, 4300 new courses were identified across Coursera, edX, FutureLearn, and Swayam platforms. Using scrapers to collect enrollment data, the top 100 most popular courses were determined, accounting for 4.8M out of the total 7.3M enrollments for new courses. Notably, Google created about 25% of these top courses, while approximately 20% focused on ChatGPT and generative AI.

By Claude Sonnet

Facts

  • 4300 Courses = 7.300.000 Enrollments
  • Top 100 (2.33%) Courses = 4.800.000 (65.75%) Enrollments
@zmiftah
zmiftah / Notepad2.ini
Created February 16, 2022 02:20 — forked from xCONFLiCTiONx/Notepad2.ini
Notepad2.ini Visual Studio Dark Theme (Color Scheme Only)
##above is your settings##
[Custom Colors]
01=#000000
02=#0A246A
03=#3A6EA5
04=#52A5F8
05=#0D8206
06=#608020
07=#648000
08=#A46000
@zmiftah
zmiftah / ssh_config
Last active May 11, 2021 02:18
Ssh Config for Github and Bitbucket
Host myapp myapp.domain.com
HostName myapp.domain.com
IdentityFile ~/.ssh/myapp-id
User username
Host github.com
Hostname ssh.github.com
Port 443
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
@zmiftah
zmiftah / .editorconfig
Created February 24, 2021 03:22
editorconfig for Laravel
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

Postgres - Simple Master-Slave Replication

This is insecure, fast-to-setup setup of simple master-slave replication with dockerized PostgreSQL installation. Note, that below works with version postgres version 12.2: postgres (PostgreSQL) 12.2 (Debian 12.2-1.pgdg100+1).

Preparation:

# This is where your primary database files will be stored
@zmiftah
zmiftah / vpn.md
Created October 23, 2019 06:41 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

A Russian translation of this article can be found here, contributed by Timur Demin. There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Why not?

@zmiftah
zmiftah / 0.59-changelog-generator.js
Created August 16, 2019 09:37
Changelog Generator for react-native-community/releases (v0.59)
#!/usr/bin/env node
'use strict';
const levenshtein = require('fast-levenshtein');
const argv = require('yargs')
.usage('$0 [args]', 'Generate a React Native changelog from the commits and PRs')
.options({
'base': {
@zmiftah
zmiftah / get_yesterday.js
Created July 16, 2019 08:13
Get Yesterday
var getYesterday = function() {
var yesterday = new Date(Date.now() - 86400000); //24*60*60*1000
var year = yesterday.getFullYear();
var month = String(yesterday.getMonth() + 1).padStart(2, '0');
var day = String(yesterday.getDate()).padStart(2, '0');
return year + month + day;
};
let input = $('#txt_number')
function validateNumberKey(e) { //keydown
let newVal = this.value + e.key
return e.keyCode == 36 || // e.key=Home
e.keyCode == 8 || // e.key=Backspace
e.keyCode == 37 || // e.key=ArrowLeft
e.keyCode == 39 || // e.key=ArrowRight
$.isNumeric(newVal)