This is a Slack bot that automatically links to Linear.app issues. Sort of how like the Github autolinks work, except for Slack.
For example, you type Check out SE-12
, the bot will then link to https://linear.app/{team}/se-12
require 'rubygems' | |
require 'oauth' | |
require 'xmlsimple' | |
# Create an OAuth Consumer with the appropriate API key and secret. | |
@consumer = OAuth::Consumer.new("api_key_EUNzNgVkrpFUFg", "api_secret_KBq6hTvjjvqAWOPz6c4WnQHN6jvkU8", { :site=>"https://my-domain.haikulearning.com" }) | |
# Create an OAuth Access Token using your personal key and secret. | |
@access_token = OAuth::AccessToken.new(@consumer, "token_959b3659b65ddbb6f8552c3401", "secret_40ec1d3617e7f58811c2f1e4416dcf2f7") |
require 'rubygems' | |
require 'oauth' | |
require 'xmlsimple' | |
# Create an OAuth Consumer with the appropriate API key and secret. | |
@consumer = OAuth::Consumer.new("api_key_EUNzNgVkrpFUFg", "api_secret_KBq6hTvjjvqAWOPz6c4WnQHN6jvkU8", { :site=>"https://my-domain.haikulearning.com" }) | |
# Create an OAuth Access Token using your personal key and secret. | |
@access_token = OAuth::AccessToken.new(@consumer, "token_959b3659b65ddbb6f8552c3401", "secret_40ec1d3617e7f58811c2f1e4416dcf2f7") |
using System; | |
using System.Security.Cryptography; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Net; | |
using System.Web; | |
using System.IO; | |
using System.Collections.Specialized; | |
// Program start class |
import os | |
import requests | |
CONFIG_PATTERN = 'http://api.themoviedb.org/3/configuration?api_key={key}' | |
IMG_PATTERN = 'http://api.themoviedb.org/3/movie/{imdbid}/images?api_key={key}' | |
KEY = '<your_api_key>' | |
def _get_json(url): | |
r = requests.get(url) | |
return r.json() |
#!/usr/bin/env python | |
import pyaudio | |
import socket | |
import sys | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 1 | |
RATE = 44100 | |
CHUNK = 4096 |
import React from "react"; | |
import { render } from "react-dom"; | |
import PropTypes from "prop-types"; | |
// Using PropTypes.InferProps | |
type InferPropTypes< | |
PropTypes, | |
DefaultProps = {}, | |
Props = PropTypes.InferProps<PropTypes> |
#!/usr/bin/env python3 | |
# Per cbd, "SS310 modem", "shannon310". This is a Samsung Galaxy S7 SM-G930F. | |
# ["/sbin/cbd", "-d", "-tss310", "-bm", "-mm", "-P", "platform/155a0000.ufs/by-name/RADIO"] | |
boot0_path = '/dev/umts_boot0' | |
firmware_partition = '/dev/disk/by-partlabel/RADIO' ## maps to /dev/sda8 on my phone | |
nv_data_path = '/efs/nv_data.bin' ## mount /dev/disk/by-partlabel/EFS (/dev/sda3 for me) on /efs | |
import cffi |
This is a Slack bot that automatically links to Linear.app issues. Sort of how like the Github autolinks work, except for Slack.
For example, you type Check out SE-12
, the bot will then link to https://linear.app/{team}/se-12
import { PrismaClient } from '@prisma/client'; | |
import type { User } from '@prisma/client'; | |
import { createPool, sql } from 'slonik'; | |
export const buildBaseConnectionURL = (config) => { | |
return ( | |
'postgresql://' + | |
config.DB_USER + | |
':' + | |
config.DB_PASS + |
#!/bin/bash | |
# Ollama Model Export Script | |
# Usage: bash ollama-export.sh vicuna:7b | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR) | |
# https://gist.github.com/supersonictw/f6cf5e599377132fe5e180b3d495c553 | |
# Interrupt if any error occurred | |
set -e | |
# Declare |