Skip to content

Instantly share code, notes, and snippets.

@zohair-k
zohair-k / GoogleMAps
Created November 18, 2024 13:40
GoogleMap API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Google Map Integration</title>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<style>
#map {
height: 400px;
@newdimitri
newdimitri / bypass.md
Created November 18, 2024 13:39 — forked from vipkingo1/bypass.md
chatGPT bypass
@sweshelo
sweshelo / hide-left-side-bar.js
Created November 18, 2024 13:37
Claudeの左サイドバーウザすぎ.js
// ==UserScript==
// @name Hide Left-side bar
// @namespace http://tampermonkey.net/
// @version 2024-11-18
// @description Claudeのウザすぎる左サイドバーを消す
// @author sweshelo
// @match https://claude.ai/chat/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=claude.ai
// @grant none
// ==/UserScript==
CREATE TABLE client(
idClient INT,
nomClient VARCHAR(50) NOT NULL,
prenomClient VARCHAR(50) NOT NULL,
dateNaissanceClient DATE,
sexeClient INT,
telClient INT,
mailClient VARCHAR(50),
adresse1Client VARCHAR(50) NOT NULL,
adresse2Client VARCHAR(50) NOT NULL,
@w00kie
w00kie / index.ts
Last active March 14, 2025 02:34
Cloudflare Worker that bundles R2 objects in a Zip file
import { z } from 'zod';
import { ZipWriter, BlobReader, configure } from '@zip.js/zip.js';
// Without this, we get uncaught error due to Workers runtime bug
// See: https://github.com/gildas-lormeau/zip.js/discussions/514
configure({
useCompressionStream: false,
});
// Payload schema that lists the files to be bundled, their filenames and the archive filename
@chottokun
chottokun / qwen2_7b-ipynb.ipynb
Created June 7, 2024 23:29
ollama_qwen2_7b.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /bin/bash
# Modified to run both (redudantly, yes, I know, I am paranoid, you should be too) checks
#
set -eu
# find path to liblzma used by sshd
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
echo 'Check one: does it even exist?'
# does it even exist?
if [ "$path" == "" ]
@eggplants
eggplants / enable_jit_and_nogil_on_python_3130a5_with_pyenv.md
Last active January 25, 2025 15:12
Enable JIT and NOGIL on Python 3.13.0a5 with pyenv (--enable-experimental-jit / --disable-gil)

Enable JIT and NOGIL on Python 3.13.0a5 with pyenv

Environment

$ uname -vorm
6.5.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb  7 14:58:39 UTC 2024 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
@anoopkcn
anoopkcn / google_drive_to_machine.md
Created March 5, 2024 10:27
Downloading google drive data

Get the file ID:

  1. Go to your Google Drive in your browser.
  2. Right-click (or control-click) the file you want to download and click “Get shareable link”. The link looks like this: https://drive.google.com/open?id=XXXXX. Make note of the file ID “XXXXX”; you will be needing it below.

Get an OAuth token:

  1. Go to OAuth 2.0 Playground
  2. In the “Select the Scope” box, scroll down, expand “Drive API v3”, and select https://www.googleapis.com/auth/drive.readonly
  3. Click “Authorize APIs” and then “Exchange authorization code for tokens”. Copy the “Access token”; you will be needing it below.
@Feiyuyu0503
Feiyuyu0503 / telegram_login.py
Created January 30, 2024 11:41
telegram登录脚本
from telethon import TelegramClient, events
from telethon.sessions import StringSession
# 可选
saveToFile = True # 是否把登录成功后的session文件保存到本地,给其他环境复用
#phone = '' # telegram的登录手机号. 在这预先填写好
#password = '' # 两步验证密码,没设置过就不填
SESSION_NAME = 'session_name' # 保存session文件的名字,给其他环境复用。其含义同 https://github.com/Feiyuyu0503/free-dall-e-proxy/blob/95ecee4aef77a2b468bf16e9c38c3b117c5e0bae/data/.env.example#L10