Skip to content

Instantly share code, notes, and snippets.

View sahyung's full-sized avatar
💭
I may be slow to respond.

sahyung sahyung

💭
I may be slow to respond.
View GitHub Profile
@sahyung
sahyung / emoji-mapping-v16
Created January 6, 2025 06:42
list of the emoji characters with CLDR name, from https://unicode.org/emoji/charts/full-emoji-list.html
INSERT INTO emoji (emoji, description) VALUES ('😀', 'grinning face');
INSERT INTO emoji (emoji, description) VALUES ('😃', 'grinning face with big eyes');
INSERT INTO emoji (emoji, description) VALUES ('😄', 'grinning face with smiling eyes');
INSERT INTO emoji (emoji, description) VALUES ('😁', 'beaming face with smiling eyes');
INSERT INTO emoji (emoji, description) VALUES ('😆', 'grinning squinting face');
INSERT INTO emoji (emoji, description) VALUES ('😅', 'grinning face with sweat');
INSERT INTO emoji (emoji, description) VALUES ('🤣', 'rolling on the floor laughing');
INSERT INTO emoji (emoji, description) VALUES ('😂', 'face with tears of joy');
INSERT INTO emoji (emoji, description) VALUES ('🙂', 'slightly smiling face');
INSERT INTO emoji (emoji, description) VALUES ('🙃', 'upside-down face');
@sahyung
sahyung / gist:52d7cecccd89f4b57f44be3d0d4c1c71
Created September 9, 2022 11:48 — 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:
@sahyung
sahyung / gitlab-ci-cd.md
Last active August 23, 2022 09:42
simple ci/cd for NiagaHoster SRE Technical Test at https://docs.google.com/document/d/1hdU8UdSkJdyZOff3YXta98YeidTlG9cnQMsEpQuMgFA/edit with improvisation, use gitlab-runner instead of Chef and Jenkins.

Setup CI/CD using Gitlab

Install Gitlab Repositories

Install dependencies

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
@sahyung
sahyung / refactor-id-test-1
Created August 25, 2020 09:42
About test for php developer https://gitlab.refactory.id/snippets/3 | challenge number 1
function mySwap(data, counter){
var tmpSorted = data;
for(i=0; i<data.length-1; i++){
if(data[i] > data[i+1]){
counter++;
var swaped = [data[i+1], data[i]];
var tmp = null;
tmp = data[i];
data[i] = data[i+1];
data[i+1] = tmp;
@sahyung
sahyung / Paylane.php
Last active July 25, 2020 12:16
Payment adapter custom for Boxbilling using Paylane gateway
<?php
/**
* filepath: __DIR__/bb-library/Payment/Adapter/Paylane.php
*/
class Payment_Adapter_Paylane implements \Box\InjectionAwareInterface
{
private $config = array();
protected $di;
public function setDi($di)
@sahyung
sahyung / galactic-romanian-arabic-converter.php
Created March 18, 2018 15:37
GALAXY MERCHANT TRADING GUIDE
<html>
<body>
<form action="" method="post">
<textarea name="input" rows="10" cols="80" placeholder="
example:
how much is pish tegj glob glob ?
how many Credits is glob prok Silver ?
how many Credits is glob prok Gold ?
how many Credits is glob prok Iron ? "></textarea><br>
<button name="convert" type="submit" value="CONVERT">CONVERT</button>
@sahyung
sahyung / MySQL_Sierra.md
Created November 11, 2017 18:58
Install MySQL on macOS Sierra

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

Guide

Note The extension Imagick is now included in Ondrej's PPA. All you need to do now is $ sudo apt-get install php-imagick, and you're done. I'll keep the guide here because a lot of it is still true for other extensions

======

I've installed PHP7 via Ondrej's PPA. He maintains these PPA's on his free time, consider donating

Install dependencies