Skip to content

Instantly share code, notes, and snippets.

View rognales's full-sized avatar
🏠
Working from home

Zaiman Noris rognales

🏠
Working from home
View GitHub Profile
@BinaryKitten
BinaryKitten / toRawSql.php
Last active January 22, 2023 21:52
toRawSql.php
<?php
declare(strict_types=1);
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Query\Builder as QueryBuilder;
QueryBuilder::macro(
'toRawSql',
function () {
@mapehe
mapehe / rant.md
Last active December 5, 2021 09:17
don't know why i wrote this

Rant: I'm sick and tired of cryptobros.

I'm gonna go out on a limb here and claim that the general interest in cryptocurrencies is directly proportional to the BTC/USD rate.

Remember the 2018 bubble, when everyone made delusional claims along the lines of the blockchain will replace the internet? It got so big that even a bunch of companies bought the hype. Cash was thrown at business projects that made no goddamn sense: I distinctly remember asking the Finnish MD of a major financial organization how their blockchain proof-of-concept was supposed to work. They

@christiangenco
christiangenco / migrateHeroicons.js
Last active May 15, 2024 17:06 — forked from PicchiKevin/migrate.sh
Heroicons v1 to v2
const fs = require("fs");
if (!fs.existsSync("package.json")) {
console.error(
"Cannot find package.json. Please run this script in your project directory."
);
process.exit(1);
}
const package = fs.readFileSync("package.json", "utf8");