Skip to content

Instantly share code, notes, and snippets.

View gustavocs97's full-sized avatar
🎯
Focusing

Gustavo gustavocs97

🎯
Focusing
View GitHub Profile
@Luxian
Luxian / notes.md
Last active May 21, 2025 02:22
Samsung S5e debloating
@estevecastells
estevecastells / bookmarklet_robots_txt_minified.js
Last active October 14, 2023 13:57
Minified Bookmarklet - Visualize URLs blocked by Robots.txt in a page
javascript:!function(){let e=Array.from(document.querySelectorAll("a")).map(e=>new URL(e.href,window.location.origin).href).filter(e=>{try{return new URL(e).origin===window.location.origin&&!e.includes("#")}catch(t){return console.error(%60Error parsing URL: ${e}%60),!1}});e=Array.from(new Set(e));let t=window.location.origin+"/robots.txt";fetch("https://tools.estevecastells.com/api/bulk-robots-txt/v1",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({robots_txt_url:t,links:e})}).then(e=>e.json()).then(e=>{let o="box-"+Math.random().toString(36).substr(2,9),r=document.createElement("div");r.attachShadow({mode:"open"});let n=document.createElement("div");if(n.style="position:fixed;bottom:5px;right:5px;background-color:white;width:300px;padding:10px;border:1px solid grey;z-index:9999;",n.id=o,document.body.appendChild(r),r.shadowRoot.appendChild(n),e.error)n.innerHTML=%60<span style="position:absolute;right:5px;top:0px;cursor:pointer;padding:0 4px;background-color:white;" id="close
@AzizDhaouadi
AzizDhaouadi / Collectionpage.liquid
Last active November 11, 2024 11:12
Shopify Structured Data
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@graph": [
{
"@type": "CollectionPage",
"url": "{{ shop.url }}{{ collection.url }}",
"name": "{{ collection.title }}",
"inLanguage": ["en", "fr"],
"image": "{{ collection.image }}",
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active October 8, 2025 12:02
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active October 17, 2025 04:33
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@tmchow
tmchow / microdata-schema.liquid
Last active November 11, 2024 20:28 — forked from bakura10/microdata-schema.liquid
This is the last microdata-schema for our Shopify themes
{%- comment -%}
This snippet structures the micro-data using JSON-LD specification. Please note that for Product especially,
the schema often changes. We try to output as much info as possible, but Google may add new requirements over time,
or change the format of some info
{%- endcomment -%}
{%- if request.page_type == 'product' -%}
{%- assign days_product_price_valid_until = 10 | times: 86400 -%}
{%- capture main_entity_microdata -%}
@benjaminsehl
benjaminsehl / headless-theme-redirect.liquid
Last active November 11, 2024 20:47
Shopify Headless Theme.liquid Redirect — UPDATE: replace with this theme: https://github.com/benjaminsehl/shopify-headless-theme
{% comment %}
UPDATE: Now you can use this theme to more easily manage your redirects:
https://github.com/benjaminsehl/shopify-headless-theme
{% endcomment %}
{% assign new_website = 'https://headless-website.com/' %}
<!doctype html>
<html>
@aspose-com-gists
aspose-com-gists / convert-psd-to-bmp.cs
Last active April 10, 2023 02:30
C# Photoshop PSD to Images and PDF Conversion | Aspose.PSD for .NET
using (var image = new Image.Load("template.psd"))
{
var options = new BmpOptions();
image.Save("output.bmp", options);
}
@barbietunnie
barbietunnie / download-old-chrome-versions.md
Last active September 17, 2025 07:46
How to download old versions of Chrome

How to download old versions of Chrome

Click here to download old versions of Chrome for Linux, Mac and Windows.

The download_url field of the desired section houses the URL to the download.

Alternatively, for not too old versions, you can get it directly here.

@ctrl-freak
ctrl-freak / apk_zipalign_resign.md
Created July 24, 2020 02:01
Modifying Android APK and Resign on Windows