sudo apt-get install tilixsudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh
sudo chmod +x /etc/profile.d/vte.sh| import {Env, Hono, HonoRequest} from "hono"; | |
| import {createSchema, createYoga} from "graphql-yoga"; | |
| const schema = createSchema({ | |
| typeDefs: `...graphql schema...`, | |
| resolvers: { | |
| Query: { | |
| hello: () => 'Hello wolrd :)', | |
| }, | |
| Subscription: { |
| import { integer, sqliteTableCreator, text } from 'drizzle-orm/sqlite-core' | |
| const sqliteTable = (tenant?: string) => | |
| sqliteTableCreator(name => (tenant ? `${tenant}_${name}` : name)) | |
| export const users = sqliteTable()('users', { | |
| id: integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }), | |
| name: text('name'), | |
| }) |
| To install chruby and ruby-install: | |
| brew install chruby ruby-install | |
| To install Ruby using ruby-install: | |
| ruby-install ruby 2.7.1 | |
| NOTE: You can find latest stable version of Ruby here: https://www.ruby-lang.org/en/downloads/ | |
| If you have issues installing Ruby then try the following: | |
| brew install openssl@3 | |
| ruby-install 3.2.2 -- --with-openssl-dir=$(brew --prefix openssl@3) |
| // app/routes/api/auth/$.ts | |
| import NextAuth from "~/lib/next-auth/index.server"; | |
| export const { action, loader } = NextAuth({ | |
| providers: [ | |
| GoogleProvider({ | |
| clientId: env.GOOGLE_CLIENT_ID, | |
| clientSecret: env.GOOGLE_CLIENT_SECRET, | |
| }), | |
| ], |
| # Fast reading from the raspberry camera with Python, Numpy, and OpenCV | |
| # Allows to process grayscale video up to 124 FPS (tested in Raspberry Zero Wifi with V2.1 camera) | |
| # | |
| # Made by @CarlosGS in May 2017 | |
| # Club de Robotica - Universidad Autonoma de Madrid | |
| # http://crm.ii.uam.es/ | |
| # License: Public Domain, attribution appreciated | |
| import cv2 | |
| import numpy as np |
| import puppeteer from 'puppeteer-extra'; | |
| import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest | |
| import * as readline from 'readline'; | |
| puppeteer.use(pluginStealth()); | |
| // Use '-h' arg for headful login. | |
| const headless = !process.argv.includes('-h'); | |
| // Prompt user for email and password. |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| # https://gist.github.com/ygotthilf/baa58da5c3dd1f69fae9#gistcomment-2932501 | |
| # 2048 bits | |
| openssl genrsa -out private.pem 2048 | |
| openssl rsa -in private.pem -pubout -out public.pem | |
| # 4096 bits | |
| openssl genrsa -out private.pem 4096 | |
| openssl rsa -in private.pem -pubout -out public.pem |
| defmodule MacroExp do | |
| defmacro attr_accessor(atom) do | |
| getter = String.to_atom("get_#{atom}") | |
| setter = String.to_atom("set_#{atom}") | |
| quote do | |
| def unquote(getter)(data) do | |
| data |> Map.from_struct |> Map.get(unquote(atom)) | |
| end | |
| def unquote(setter)(data, value) do | |
| data |> Map.put(unquote(atom), value) |