Skip to content

Instantly share code, notes, and snippets.

View pabalexa's full-sized avatar
🎯
Focusing

Pablo Alexandre pabalexa

🎯
Focusing
View GitHub Profile
@pabalexa
pabalexa / tweetXer.js
Created February 1, 2024 14:36 — forked from lucahammer/tweetXer.js
FOLLOW THIS LINK FOR UPDATED VERSION: https://github.com/lucahammer/tweetXer
// ==UserScript==
// @name TweetXer
// @namespace https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16/
// @version 0.5
// @description Delete all your Tweets for free.
// @author Luca
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?domain=twitter.com
// @grant unsafeWindow
// ==/UserScript==
@pabalexa
pabalexa / Win10UpdateDisabler.bat
Created November 4, 2023 11:25 — forked from mcprat/Win10UpdateDisabler.bat
Yet Another Windows 10 Update Disabler [IN PROGRESS]
::todo:
::cant have one task, so many tasks, one for each trigger
::the ability to adjust local system drive (location of software distribution), where to place script
::hostname if for another system (for host, leave as `hostname`, or set as drive C:\, or remote \\server\dir)
::adjust variables option, where it shows the default, hit enter to not change (just like easy-rsa)
::detection of event IDs
::creation of a task to reverse the process
::running of the task to enable updates
::deletion of the task to enable updates (no disabling of it because it would be manual only)

Adding Open Graph metadata to Blogger is easy. Simply copy the code below and paste it into your template after the <header> tag.

A couple notes:

  • og:locale Should probably actually reflect the blog's locale instead of just being a hardcoded string. Unfortunately, Blogger only gives us en-us with a hyphen, instead of an underscore, so that won't work.
  • If you're using your blog as a personal profile, you may consider changing the second og:type from website to profile and adding your personal information
  • og:image Is only supplied if Blogger finds an image in the current post. However, not supplying og:image is invalid. You could provide an alternate image of your blog logo, or a Gravatar.
  • If you do something cool with this, I'd love to hear about it. [email protected]
@pabalexa
pabalexa / reclaimWindows10.ps1
Created July 9, 2019 06:43 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Modified by: alirobe <[email protected]> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@pabalexa
pabalexa / functions.php
Created December 13, 2018 09:03 — forked from lukecav/functions.php
Filter by featured products in wp-admin when using WooCommerce
add_action('restrict_manage_posts', 'featured_products_sorting');
function featured_products_sorting() {
global $typenow;
$post_type = 'product'; // change to your post type
$taxonomy = 'product_visibility'; // change to your taxonomy
if ($typenow == $post_type) {
$selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : '';
$info_taxonomy = get_taxonomy($taxonomy);
wp_dropdown_categories(array(
'show_option_all' => __("Show all {$info_taxonomy->label}"),
@pabalexa
pabalexa / pyqt5_scraper.py
Created June 10, 2018 06:54 — forked from brbsix/pyqt5_scraper.py
PyQt5 Scraper (Basic Example)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Sample scraper script
See: https://impythonist.wordpress.com/2015/01/06/ultimate-guide-for-scraping-javascript-rendered-web-pages/
"""
# standard imports
import sys
@pabalexa
pabalexa / delete_all_tweets.py
Created March 4, 2018 14:22 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
@pabalexa
pabalexa / gist:49a78e508e368d06bc13
Last active August 26, 2015 10:07 — forked from r-a-y/gist:5578432
Disable BuddyPress' registration and use WP's instead. Paste this in /wp-content/plugins/bp-custom.php.
/**
* Disables BuddyPress' registration process and fallsback to WordPress' one.
*/
function my_disable_bp_registration() {
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );
@pabalexa
pabalexa / tweet_dumper.py
Last active August 29, 2015 14:23 — forked from yanofsky/LICENSE
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
// The Br4inM4chin3
// (c) 2011 by Milan Gruner
// Original version (c) by Mitch Altman for MakeMagazine
// chip frequency
#define F_CPU 8000000
#include <avr/io.h> // this contains all the IO port definitions
#include <util/delay.h> // for delays
#include <avr/interrupt.h> // definitions for interrupts