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| #!/bin/bash | |
| # Check if the input file is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <path-to-temp-file>" | |
| exit 1 | |
| fi | |
| # The input file containing the file content (e.g., the temp-file extracted from git show) | |
| temp_file="$1" |
| 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) |
| #!/bin/bash | |
| # 1. Install python3 (if applicable) | |
| if ! command -v python3 &> /dev/null; then | |
| sudo apt update | |
| sudo apt install python3 | |
| fi | |
| # 2. Install pip (if applicable) | |
| if ! command -v pip &> /dev/null; then |
| // 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 |
| Get-ChildItem *.tsx,*.js,*.css,*.ts -Recurse | Rename-Item -newname { $_.Name + ".txt" } |
| 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. |