Skip to content

Instantly share code, notes, and snippets.

View TheBITLINK's full-sized avatar
🤔
working, maybe

TheBITLINK aka BIT TheBITLINK

🤔
working, maybe
View GitHub Profile
@TheBITLINK
TheBITLINK / ImageExample.vue
Created August 14, 2023 14:45
Material Design 3 (Material You) Theme Generator for Vuetify
<script setup lang="ts">
import { useTheme } from 'vuetify'
import { vuetifyThemeFromImage } from '@/plugins/vuetifyM3ThemeGenerator'
const theme = useTheme()
async function onImageLoad (e: Event) {
const target = e.target as HTMLImageElement
const darkTheme = await vuetifyThemeFromImage(target, true)
const lightTheme = await vuetifyThemeFromImage(target, false)
theme.themes.value.dark.colors = darkTheme.colors
@TheBITLINK
TheBITLINK / README.md
Created February 18, 2019 16:38
FocaBot in strange places

I spent a whole morning trying to setup FocaBot on different (uncommon) platforms, just because.

I decided to document this in case someone needs it in the future, be aware that neither of those platforms are officially supported, so if you find any issues, you're mostly on your own.

Raspberry PI

Installing FocaBot on a Raspberry PI should be pretty straightforward, following the official install instructions for Linux should work for the most part.

@TheBITLINK
TheBITLINK / discord.css
Last active April 20, 2018 05:11
Discord Theme
.new-messages-bar, .jump-to-present-bar {
left: 0!important;
right: 0!important;
border-radius: 0!important;
}
.new-messages-bar {
background: rgba(14,161,182, .75)!important;
}
@TheBITLINK
TheBITLINK / btc-convert-azarasi.coffee
Created October 27, 2017 02:11
FocaBot module to check the price of the bitcoin
##
# FocaBot 1.x / Azarasi
##
btcAverage = require('request-promise').defaults {
baseUrl: 'https://apiv2.bitcoinaverage.com'
json: true
simple: true
}
class BtcConvert extends BotModule
@TheBITLINK
TheBITLINK / discordfb2k.js
Created September 10, 2017 10:00
Update discord's game status according to foobar2k's window title.
/**
* @file Updates Discord's game status according to foobar2k's window title.
* @author TheBITLINK aka BIT <me@thebitlink.com>
* @license MIT
*
* To use:
* - Set foobar2k's window title to "%artist% - %title%" (Preferences -> Display -> Default User Interface)
* - Edit the line bellow with your discord user token
* - Run those commands (in the same folder discordfb2k.js is in):
* - npm install discord.js node-process-windows
@TheBITLINK
TheBITLINK / FocaBot Changelog.md
Last active March 3, 2017 17:11
FocaBot changelog

FocaBot Changelog (Older Releases)

Here are the changelogs for all versions prior to FocaBot 0.5.5.

Changelogs for version 0.5.5 onwards are on the releases page.

Version 0.5.4 (December 15, 2016)

This is the biggest update FocaBot has got in a while.

############
# Settings #
############
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes

Keybase proof

I hereby claim:

  • I am TheBITLINK on github.
  • I am thebitlink (https://keybase.io/thebitlink) on keybase.
  • I have a public key whose fingerprint is EFDB 6E9D 00BD 8D33 5610 28CC 00F9 A505 26B6 D0B3

To claim this, I am signing this object:

@TheBITLINK
TheBITLINK / archuser.js
Last active November 28, 2016 17:57
Node.js Arch User
const getDistro = require('linus');
const isRoot = require('is-root');
const timeout = require('timeout-as-promise');
const chalk = require('chalk');
const truthy = require('truthy');
const execa = require('execa');
const terminate = require('terminate');
const Log = require('log');
const Promise = require('bluebird');
const pacmanCmd = require('system-install')().split(' ')[1];