I hereby claim:
-
I am wzulfikar on github.
-
I am wzulfikar (https://keybase.io/wzulfikar) on keybase.
-
I have a public key ASDwimH7OPEvqzHFVBGnJe6lWpzCz_sskDdNkffx8G1JBwo
| import { ApiHandler, handle, z } from "@backend"; | |
| const schema = z.object({ | |
| query: z.object({ | |
| name: z.string(), | |
| }), | |
| }); | |
| export const response = z.object({ | |
| greeting: z.string(), |
| import { captureException } from '@sentry/nextjs'; | |
| import { StatusCodes } from 'http-status-codes'; | |
| import { NextApiRequest } from 'next'; | |
| import { z } from 'zod'; | |
| import { NextApiResponseWithData } from '.'; | |
| import { validateSchema } from './validateSchema'; | |
| type RootOptions = { | |
| schema?: z.SomeZodObject; |
| Hello world from Tira! |
| # Run `gem install active_record sqlite3` to install the dependencies | |
| ENV['DATABASE_URL'] = 'sqlite3:/tmp/sqlite.test' # Change this to anything you want | |
| require 'sqlite3' # Make sure to require the correct adapter for your `DATABASE_URL` | |
| require 'active_record' | |
| ActiveRecord::Base.establish_connection | |
| ActiveRecord::Schema.define do |
| #!/bin/sh | |
| # File: /opt/wordpress/run.sh | |
| APP_NAME=acme-blog | |
| WORKDIR=/opt/wordpress | |
| if [ ! -f "uploads.ini" ]; then | |
| touch ${WORKDIR}/uploads.ini | |
| fi |
| #!/bin/sh | |
| # File: /opt/nginx-proxy/run.sh | |
| # If you are on ubuntu and have docker installed, you can automate the setup by running below command. | |
| # Make sure to adjust the DEFAULT_EMAIL and WORKDIR according to your need. The command: | |
| : ' | |
| export [email protected] WORKDIR=/opt/nginx-proxy && \ | |
| sudo mkdir ${WORKDIR} && \ | |
| curl -o /tmp/nginx-proxy.sh https://gist.githubusercontent.com/wzulfikar/957917c8ad84a6047bdb0831215daa51/raw/cf7acfe4fecbcd2cd9acf83ef0382cfc03fbbc63/run.sh && \ |
| #!/bin/sh | |
| # Download and run the script (tested on Ubuntu 20): | |
| # curl -s https://raw.githubusercontent.com/wzulfikar/lab/master/bash/setup-obs-ubuntu.sh | sh | |
| # | |
| # Read notes about the script: | |
| # https://www.notion.so/Setup-OBS-in-Ubuntu-for-24-7-YouTube-Live-Streaming-5949000d598b480aa422657d54ca7da4 | |
| # | |
| # Once installed, you can access OBS using vnc client on port 6701. |
| const fetchMachine = Machine({ | |
| id: 'Point of Sale', | |
| initial: 'place order', | |
| context: { | |
| retries: 0 | |
| }, | |
| states: { | |
| 'place order': { | |
| on: { | |
| 'unpack qr': 'qrcode' |
| // Available variables: | |
| // Machine (machine factory function) | |
| // assign (action) | |
| // XState (all XState exports) | |
| const fetchMachine = Machine({ | |
| id: 'Point of Sale', | |
| context: { attempts: 0 }, | |
| initial: 'idle', |
I hereby claim:
I am wzulfikar on github.
I am wzulfikar (https://keybase.io/wzulfikar) on keybase.
I have a public key ASDwimH7OPEvqzHFVBGnJe6lWpzCz_sskDdNkffx8G1JBwo