Skip to content

Instantly share code, notes, and snippets.

View kognise's full-sized avatar
🦷

Lexi Mattick kognise

🦷
View GitHub Profile
@kognise
kognise / kagi.css
Last active February 21, 2026 02:55
My Kagi custom CSS. It's very minimal, but it makes the interface a lot cleaner.
.theme_moon_dark {
--search-result-title: var(--link);
--primary-hover: var(--blue-300);
--primary-hover-hover: var(--blue-300);
--link: var(--blue-300);
--secondary: var(--graphite-950);
--blue-300: #b9c7ff;
--ranked-box-shadow: var(--box-shadow);
}
#[macro_export]
macro_rules! autoparse_struct {
(
$(#[$meta:meta])*
$vis:vis $Name:ident {
$($inner:tt)*
}
) => {
autoparse_struct!(@ (reader, [$($meta)*], $vis, $Name): {$($inner)*} -> [], [], []);
};
use std::marker::PhantomData;
use std::ptr;
// Behaves like &'a mut dyn FnMut,
// except requires only one pointer indirection for functions without data.
struct ShallowFnMutRef<'a> {
fn_ptr: unsafe fn(*mut ()),
data: *mut (),
_marker: PhantomData<&'a mut ()>,
}
struct Container<'a> {
process: &'a mut dyn FnMut(),
}
// ...
struct ContainerOwner<'a> {
container: Container<'a>,
}
window._adata = {
action: 'js',
target: 'console.log("BOT!!!");',
js: false,
ok: false,
cid: '4cb2bdd5e1b96a87d439f65ad57e9039'
}
;(function () {
var errors = []
@kognise
kognise / One Dark.terminal
Created May 15, 2022 16:39
An improved Atom One Dark theme for the macOS built-in terminal.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4yNDMxMzcyNTQ5IDAuMjY2NjY2NjY2
NyAwLjMyMTU2ODYyNzUAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@kognise
kognise / readme.md
Last active March 12, 2022 23:19
GitHub and Obsidian
  • Create a repository and set it to private if you want
  • In your vault, run these commands substituting the values
    git init
    git add .
    git commit -m "Initial commit"
    git remote add origin git@github.com:<USERNAME>/<REPO_NAME>.git
    git push -u origin master
    
  • Now...
function Expletives({ children }) {
let [letters, setLetters] = useState(children);
useEffect(() => {
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
return;
}
let interval = setInterval(() => {
let newLetters = children.split("").map((letter, index) => {
module.exports = {
tokens: [
// Put in a token from https://api.slack.com/legacy/custom-integrations/legacy-tokens
],
name: 'Botnise', // Change the bot name
color: '#f03e3e',
timeout: 10000,
statsFile: 'stats.json',
@kognise
kognise / install-upm.sh
Last active October 31, 2019 17:10
A small script to install Repl.it's UPM on Linux
upm_version=`curl -s "https://api.github.com/repos/replit/upm/releases/latest" | grep -Pom 1 '"tag_name": "v\K[^"]*'`
wget "https://github.com/replit/upm/releases/download/v${upm_version}/upm_${upm_version}_linux_amd64.deb"
sudo apt-get install ./upm_${upm_version}_linux_amd64.deb
rm ./upm_${upm_version}_linux_amd64.deb