Skip to content

Instantly share code, notes, and snippets.

View chrisidakwo's full-sized avatar
🤓
Having fun!

Chris Idakwo chrisidakwo

🤓
Having fun!
View GitHub Profile
@chrisidakwo
chrisidakwo / checkout.ts
Created January 12, 2025 07:33 — forked from mihaiandrei97/checkout.ts
Create checkout with dynamic product
return stripe.checkout.sessions.create({
mode: 'subscription',
customer: stripeCustomerId,
payment_method_types: ['card'],
line_items: [
{
price_data: {
currency: 'usd',
unit_amount: productPrice,
product_data: {
@chrisidakwo
chrisidakwo / contemplative-llms.txt
Last active January 7, 2025 16:28 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@chrisidakwo
chrisidakwo / tinder-api-documentation.md
Created April 17, 2023 12:47 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@chrisidakwo
chrisidakwo / README.md
Created April 10, 2023 13:06 — forked from rstacruz/README.md
Setting up Babel and TypeScript

Install Babel 7 and TypeScript

yarn add --dev \
  @babel/core \
  @babel/cli \
  @babel/preset-env \
  @babel/preset-typescript \
  typescript

Don't forget to set PHP Code Style to PSR-2 in your PHPStorm


1) Add Code Sniffer to composer.json file

composer require squizlabs/php_codesniffer
@chrisidakwo
chrisidakwo / README.md
Created May 15, 2022 15:33 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@chrisidakwo
chrisidakwo / nvmlink
Created November 10, 2021 15:44 — forked from MeLlamoPablo/nvmlink
Creates a symlink to /usr/bin/node after using nvm
@chrisidakwo
chrisidakwo / apache2_vhost_config_vuejs_dist
Created July 14, 2021 06:31 — forked from 7rin0/apache2_vhost_config_vuejs_dist
VueJS: Apache / Nginx vhost config examples
<VirtualHost *:80>
DocumentRoot "/home/dev/server/project/dist/"
ServerName vuejs.project.local
<Directory /home/dev/server/project/dist/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
Order allow,deny
allow from all
<?php
return [
'Abia' => [
'Aba',
'Arochukwu',
'Umuahia',
],
'Adamawa' => [
'Jimeta',