Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Gkiokan / vue-autoload-components.ts
Created September 23, 2024 07:41
Vue autoload Components and register globally
/**
* Author: Gkiokan Sali
* Date 2024-09-22
* Note:
* Put this file in your src/components folder
* and import it in your main.ts / entrypoint
* call autoRegisterComponents(app) to do so
* --
* Hint:
* If you wanna perfect this, put the vue cycle hook methods inside
@Gkiokan
Gkiokan / setCommands.js
Created July 22, 2024 07:24
TG Commands Set
import clc from 'cli-color'
import log from '../log'
import store from '../store'
import helper from '../util/helper'
import { bot } from './BotController';
let CommandController = {
// This should hold all commands to their specific language
@Gkiokan
Gkiokan / BotController.js
Created June 29, 2024 21:51
GrammyJS BotController (JS)
import store from '../store'
import log from '../log'
import { Bot, Context, session, lazySession } from "grammy"
import { sequentialize } from '@grammyjs/runner'
import MessageComposer from './MessageComposer'
import MenuComposer from './MenuComposer'
let BotController = {
@Gkiokan
Gkiokan / _aac_to_mp3.sh
Last active October 4, 2023 15:33
*.aac to *.mp3
# Transform all *.aac files to mp3 with ffmpeg
for file in *.aac; do ffmpeg -i "$file" -codec:v copy -codec:a libmp3lame -q:a 4 "${file%.aac}.mp3"; done
@Gkiokan
Gkiokan / scrollbar.scss
Created August 22, 2023 23:19
Scrollbar Base SCSS
html, body.body--dark {
/* Foreground, Background */
scrollbar-color: #999 #333;
::-webkit-scrollbar {
width: 10px; /* Mostly for vertical scrollbars */
height: 5px; /* Mostly for horizontal scrollbars */
}
::-webkit-scrollbar-thumb { /* Foreground */
@Gkiokan
Gkiokan / midi.demo
Created June 24, 2023 22:38
midi demo
#include <MIDI.h>
const int channel = 0;
const int wheelPin = A2;
int wheel = 0;
int mappedWheel = 0;
int maxPitchValue = 16383;
// Probably fix for Hairless as it seems to run on 115200 but didn't helped me
// struct HairlessMidiSettings : public midi::DefaultSettings
@Gkiokan
Gkiokan / WinImage-KeyGen.html
Created June 11, 2023 11:04 — forked from steelywing/WinImage-KeyGen.html
winimage 9.0 keygen
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WinImage 9.0 KeyGen</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body style="text-align: center;">
<h1>WinImage 9.0 KeyGen</h1>
@Gkiokan
Gkiokan / pimp-my-korg-logo.svg
Last active June 2, 2023 09:28
Pimp my KORG SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gkiokan
Gkiokan / USERDK.pcg
Created April 17, 2023 23:56
dummy pcg
�V KORFhDRK(prcisson) Halay Perc Tati mixkit 2 Resat kit 5 Yeni Perc 2012 RMX Drums
House kit Ti2 House kit Ti1 Yeni Perc 2013* Tati mixkit 3 Tati mixkit 2 Tati mixkit 1 Stadium kit Ti Stadium kit2 Ti Session kit2 Ti Session kit2 Ti House kit Yeni Ti SFX AY KiT deneme TATi KIT
RockDrummer v2 Funk Drummer irt Funk Drummer irt RockDrummer v2 Tati`s worldPerc Tati`s Perc 01 2 @ Tati Perc 2014 @Tati Perc Tati mixkit 3 ~House kit Yeni Funk Drummer irt |TSM kit !!SE!! Tati mixkit 1 }House kit Yeni {Ay Kit ORJ zSession kit2 Ti xHouse kit Yeni yAY KiT deneme pStadium kit Ti qAY KiT deneme NM Darbuka Kit EMO-
@Gkiokan
Gkiokan / ProxyController.php
Last active March 14, 2023 17:18
Image Proxy Controller
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Intervention\Image\Facades\Image;
use Storage;
use Http;
use Cache;