Skip to content

Instantly share code, notes, and snippets.

View PJijin's full-sized avatar
👨‍💻
Buidling @BeyondClub

Jijin P PJijin

👨‍💻
Buidling @BeyondClub
View GitHub Profile
@PJijin
PJijin / .bashrc
Created January 19, 2023 16:19
bashrc alias
alias yd="yarn run dev"
alias ys="yarn run start"
alias yr="yarn run "
alias pd="pnpm run dev"
alias pr="pnpm run"
alias pi="pnpm install"
alias c="code ."
alias nd="npm run dev"
@PJijin
PJijin / email_update.php
Created December 2, 2020 15:49
Blesta email global header and footer update
<?php
$host = "localhost";
$dbname = "DATABASE_NAME";
$dbuser = "DATABASE_USER";
$dbpass = 'DATABASE_PASSWORD';
$head = 'EMAIL HEADER';
@PJijin
PJijin / Get IP
Created February 22, 2020 15:10
Get IP Address
const getIPDetails = async () => {
const data = await fetch("https://www.cloudflare.com/cdn-cgi/trace")
const dataText = await data.text()
let output = {};
await dataText.split("\n").map(res => {
if (res) {
const keyPair = res.split("=");
output = {
...output,
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
💻✨💻✨💻💻💻✨💻✨✨✨💻✨✨✨✨💻💻✨
💻✨💻✨💻✨✨✨💻✨✨✨💻✨✨✨💻✨✨💻
💻💻💻✨💻💻✨✨💻✨✨✨💻✨✨✨💻✨✨💻
💻✨💻✨💻✨✨✨💻✨✨✨💻✨✨✨💻✨✨💻
💻✨💻✨💻💻💻✨💻💻💻✨💻💻💻✨✨💻💻✨
@PJijin
PJijin / Vscode Emoji Snippets
Created February 5, 2019 06:40
Vscode emoji snippets
{
"Happy Face": {
"scope": "javascript,typescript,php,html,css",
"prefix": ":)",
"body": ["🙂 $1"],
"description": "Happy Face"
},
"Wink": {
"scope": "javascript,typescript,php,html,css",
"prefix": ";)",
{
"if": {
"prefix": "if:",
"body": [
"@if($1)",
"$2",
"@endif"
],
"description": "if"
},
{
"Public Method": {
"prefix": "met",
"body": [
"public function $1()",
"{",
"\t$2",
"}"
]
},
{
"Section": {
"prefix": "sec",
"body": [
"@section('$1')",
"",
"@endsection"
],
"description": "Section"
},
{
"workbench.colorTheme": "Material Theme High Contrast",
"workbench.statusBar.visible": false,
"explorer.openEditors.visible": 0,
"editor.tabCompletion": true,
"editor.minimap.enabled": false,
"extensions.ignoreRecommendations": true,
"git.enableSmartCommit": true,
"workbench.iconTheme": "eq-material-theme-icons",
"materialTheme.fixIconsRunning": false,