Skip to content

Instantly share code, notes, and snippets.

View boring-dragon's full-sized avatar
🏠
Working from home

Boring Dragon boring-dragon

🏠
Working from home
View GitHub Profile
@boring-dragon
boring-dragon / convert_db.py
Created December 21, 2024 14:35
Script to convert mysql dump to an sqlite dump
import pandas as pd
import sqlite3
from sqlalchemy import create_engine
# Using pymysql explicitly in the connection string
mysql_engine = create_engine('mysql+pymysql://root@127.0.0.1:3306/database_name')
# Create SQLite connection
sqlite_conn = sqlite3.connect('database_name')
@boring-dragon
boring-dragon / slider.vue
Last active August 10, 2023 11:48
Swiper js vue component
<template>
<swiper
:slides-per-view="1"
:space-between="0"
:pagination="pagination"
@swiper="onSwiper"
:autoplay="{
delay: 3000,
disableOnInteraction: false,
}"
@boring-dragon
boring-dragon / useAPI.ts
Created June 9, 2023 19:15 — forked from Adamwaheed/useAPI.ts
Dependancy and useAPI
import { build } from "nuxt";
import { Data } from "~/types/generated";
export const useAPI = (
url: string,
items: any,
meta: any,
item: any,
status: any,
errors: {}
@boring-dragon
boring-dragon / index.php
Created May 14, 2023 14:28
Spoof OAuth Callback : P
<?php
if (($path = ltrim($_SERVER['REQUEST_URI'], '/')) && !in_array(substr($path, 0, 1), array('?', '#', '/'))) {
header("Location: $path");
exit;
}
?>
<script setup>
import { defineAsyncComponent } from "vue"
const props = defineProps({
icon: {
type: String,
required: true,
},
})
@boring-dragon
boring-dragon / cinema.py
Last active December 23, 2020 12:30
Watch for movie tickets and get telegram notification when its available in cinema.mv. This is something I wrote up an year ago
import requests
import cfscrape
import datetime
import telebot
import time
from bs4 import BeautifulSoup
# Telegram bot token
bot_token = ''
@boring-dragon
boring-dragon / test.html
Created October 16, 2020 18:27
Baivaru api direct test
<!DOCTYPE html>
<html>
<head>
<title>Baivaru Dhivatar Vue component Implementation</title>
</head>
<body>
<div id="app">
@boring-dragon
boring-dragon / index.html
Last active October 15, 2020 18:07
Baivaru Dhivatar Vue component Implementation
<!DOCTYPE html>
<html>
<head>
<title>Baivaru Dhivatar Vue component Implementation</title>
</head>
<body>
<div id="app">
@boring-dragon
boring-dragon / quil.html
Created July 2, 2020 21:53
Quil JS Thaana configs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
@font-face {
@boring-dragon
boring-dragon / font.css
Created July 2, 2020 21:36
Tiny MCE Thaana Typing Configs
@font-face {
font-family: "Mvaamu";
src: url("/mv-aammu-fk.ttf");
}
@font-face {
font-family: "MV_Faseyha";
src: url("/faseyha.otf");
}