Skip to content

Instantly share code, notes, and snippets.

View mosesintech's full-sized avatar

Moses Maximino Cosme II mosesintech

  • Dallas, Texas
  • 20:32 (UTC -05:00)
View GitHub Profile
@barrybtw
barrybtw / drizzle-adapter.ts
Last active February 20, 2024 23:45
Drizzle adapter
export function DrizzleAdapter(): Adapter {
const { users, sessions, accounts, verificationTokens } = schema;
return {
createUser: async (data) => {
const id = crypto.randomUUID();
await db.insert(users).values({ ...data, id });
const user = await db
.select()
@brycematheson
brycematheson / .htaccess
Created December 27, 2019 22:22
.htaccess file for websites hosted in cpanel
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
@malarkey
malarkey / Contract Killer 3.md
Last active May 24, 2024 23:38
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………