Skip to content

Instantly share code, notes, and snippets.

View 9kopb's full-sized avatar
💎
xyu.foundation

9kopb 9kopb

💎
xyu.foundation
View GitHub Profile
@9kopb
9kopb / index.html
Created October 17, 2023 10:27
Pure CSS Slide Down Toggle
<input type="checkbox" name="toggle" id="toggle" />
<label for="toggle"></label>
<div class="container">
@9kopb
9kopb / index.html
Created September 23, 2023 08:46
wvRypVP
<div id="app">
<qrcode-stream @detect="onDetect" @error="onError"></qrcode-stream>
</div>
@9kopb
9kopb / index.html
Created September 5, 2023 15:03
Secret Project
<div class="mobile-wrap">
<div class="mobile clearfix">
<div class="header">
<span class="ion-ios-navicon pull-left"><i></i></span>
<span class="title">Home</span>
<span class="ion-ios-search pull-right"></span>
<div class="search">
<form method="post">
{
"$jason": {
"head": {
"templates": {
"body": {
"background": {
"type": "camera",
"options": {
"device": "back"
}
@9kopb
9kopb / index.html
Created October 27, 2022 22:01
ScrollPane
<div id="ScrollPane">
<div class="scr pane prt" style="background:#039be5;" data-id="Welcome"><div class="ct"><b>ton.tg</b></div><div class="scrolldown">Scroll down<br><i class="fa fa-arrow-down" aria-hidden="true"></i></div></div>
<div class="scr prt tab">
<div class="left spane">
<div class="pane an" style="background:#CC2E40;" data-id="Subdomain01"><div class="ct"><b>wallet</b></div></div>
<div class="pane an" style="background:#039be5;" data-id="Subdomain02"><div class="ct"><b>explorer</b></div></div>
<div class="pane an" style="background:#da4236;" data-id="Subdomain03"><div class="ct"><b>blockchain</b></div></div>
</div>
<div class="right scrzone" style="background:#039be5;"><div class="ct"><span>awesome projects<br><b>.ton.tg</b></span></div></div>
</div>
#
# Monitor file $1 for changes
# Send an alert emai to $2 if file $1 changes
# usage: inotify_email_watcher.sh /var/log/messages your.name@domain.com
if [ -z "$2" ]; then
echo "Usage: inotify_email_watcher.sh"
exit 1
fi
# if the file exists
if [ -f $1 ] || [ -d $1 ]; then
@9kopb
9kopb / torrc
Created March 17, 2022 21:40 — forked from Nill-R/torrc
Minimal /etc/tor/torrc
SOCKSPort 9050
ExcludeNodes {ru}
ExcludeExitNodes {ru},{kz},{by},{cn},{kg},{tj},{uz},{ir}
Log notice file /var/log/tor/notices.log
@9kopb
9kopb / index.html
Created September 28, 2022 02:36
Pure CSS Modal - #15
<div class="section full-height">
<input class="modal-btn" type="checkbox" id="modal-btn" name="modal-btn"/>
<label for="modal-btn">Open Modal <i class="uil uil-expand-arrows"></i></label>
<div class="modal">
<div class="modal-wrap">
<img src="https://assets.codepen.io/1462889/sl3.jpg" alt="">
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.</p>
</div>
</div>
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
async function handleRequest(request) {
const { pathname, searchParams, host } = new URL(request.url);
@9kopb
9kopb / index.html
Created August 7, 2022 12:41
Login Form with floating placeholder and light button
<div class="login-box">
<h2>Login</h2>
<form>
<div class="user-box">
<input type="text" name="" required="">
<label>Username</label>
</div>
<div class="user-box">
<input type="password" name="" required="">
<label>Password</label>