Skip to content

Instantly share code, notes, and snippets.

View hid0's full-sized avatar
🎯
Focusing

Faiz Hidayatulloh hid0

🎯
Focusing
View GitHub Profile
NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="$PATH:$NPM_PACKAGES/bin"
# Preserve MANPATH if you already defined it somewhere in your config.
# Otherwise, fall back to `manpath` so we can inherit from `/etc/manpath`.
export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:$HOME/.composer/vendor/bin"
<!DOCTYPE html>
<html class="screen-top">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Page title</title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap">
@hid0
hid0 / email
Created October 20, 2021 14:38
Tailwind CSS Simple Verification Email Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tailwind CSS Simple Email Template Example </title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
</head>
@hid0
hid0 / hosts
Created January 12, 2021 18:33
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
151.101.64.217 player.vimeo.com
151.101.129.194 vimeo-hp-videos.global.ssl.fastly.net
151.101.66.109 f.vimeocdn.com
151.101.64.217 vimeo.com
151.101.130.109 i.vimeocdn.com
151.101.64.217 developer.vimeo.com
<div class="flex w-full h-full mx-auto">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in">
<input type="checkbox" name="toggle" id="prefix-3" class="checked:right-0 checked:bg-blue-600 absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none focus:outline-none cursor-pointer"/>
<label for="prefix-3" class="block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer">
</label>
</div>
</div>
</div>
#Requirements
- sudo apt-get install network-manager libnss3-tools jq xsel
- sudo apt install php-cli php-curl php-mbstring php-xml php-zip
- sudo apt install php-sqlite3 php-mysql php-pgsql
- sudo apt install composer
- sudo apt install curl
#Install mysql
- sudo apt install mysql-server
@hid0
hid0 / code_upload-ci3-model
Last active December 4, 2020 03:03
example code for upload image to db
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Registrasi extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Model_data', 'Data');
}
{
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "One Dark Pro",
"editor.fontSize": 17,
"editor.fontFamily": "'Dank Mono','JetBrains Mono','Operator Mono Book','IBM Plex Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"liveServer.settings.donotShowInfoMsg": true,
"material-icon-theme.folders.color": "#42a5f5",
"material-icon-theme.opacity": 1,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Js Starting</title>
<style>
* {
padding: 0;
margin: 0;