Skip to content

Instantly share code, notes, and snippets.

View bunnyhero's full-sized avatar
🐰

bunnyhero bunnyhero

🐰
View GitHub Profile
# https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/
import tweepy
import json
import time
import urllib.request
# You get these from https://developer.twitter.com/en/apps
# New signups at https://developer.twitter.com
consumer_key = ""
@barraIhsan
barraIhsan / README.md
Last active March 28, 2024 01:08
Youtube Premium Logo

YouTube Premium Logo

Description

The YouTube Premium Logo userscript replaces the YouTube logo with the YouTube Premium for a customized visual experience. idk why you need this, but using an adblocker + this script, will give the appearance that you have YouTube Premium.

Before:

Before

@lancethomps
lancethomps / close_notifications_applescript.js
Last active April 8, 2024 07:43
AppleScript to close all notifications on macOS Big Sur, Monterey, and Ventura
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = "close_notifications_applescript";
const CLEAR_ALL_ACTION = "Clear All";
const CLEAR_ALL_ACTION_TOP = "Clear";
@carloscheddar
carloscheddar / hide_zeplin_sidebar.js
Created October 20, 2020 21:43
Hides the Zeplin sidebar that opens by default and requires mouse drag to close
// ==UserScript==
// @name Hide Zeplin Sidebar
// @namespace https://app.zeplin.io/
// @version 0.1
// @description Hides the Zeplin sidebar that opens by default and requires mouse drag to close
// @author Carlos Feliciano-Barba
// @match https://app.zeplin.io/project/*
// @grant none
// ==/UserScript==
@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@michaelnisi
michaelnisi / update_settings
Last active August 6, 2020 21:01
Updating the version number in a iOS settings bundle
#!/usr/bin/env bash
set -o xtrace
SOURCE="${BASH_SOURCE[0]}"
if [[ -h $SOURCE ]]; then
SOURCE="$( readlink "$SOURCE" )"
fi
SOURCE_ROOT="${SOURCE_ROOT:-$( cd -P "$( dirname "$SOURCE" )/.." && pwd )}"
@ralfebert
ralfebert / generate_storyboard_constants.rb
Last active May 29, 2019 21:31
Generate Swift constants for Xcode storyboards containing cell reuse identifiers, segue identifiers and storyboard identifier. More information: https://www.ralfebert.de/storyboard-constants/
#!/usr/bin/env ruby
require 'nokogiri'
def show_usage(msg = nil)
puts "#{msg}\n\n" if msg
puts "Usage:\n\t#{$PROGRAM_NAME} [storyboard_file]"
exit(0)
end
@helje5
helje5 / ZzViewHolder.swift
Last active September 13, 2019 01:32
NSDictionaryOfVariableBindings for Swift
/**
* NSDictionaryOfVariableBindings for Swift
*
* In Objective-C you could use macros to quickly get a Dictionary of views,
* keyed on their names in the sourcecode. Like so:
*
* UILabel *label = [UILabel autolayoutView];
* NSDictionary *views = NSDictionaryOfVariableBindings(label);
*
* Which you could then use in, for example, VFL:
@erydactyl
erydactyl / tweetdeck-limit-override.js
Last active January 29, 2018 18:04 — forked from Zemnmez/tweetdeck-limit-override-dm-rt-fix.js
tweetdeck-limit-override.js
// ==UserScript==
// @name TweetDeck Cramming
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allow 280 characters in a Tweet sent from TweetDeck automatically
// @author Erydactyl and Zemnmez
// @run-at document-idle
// @match https://tweetdeck.twitter.com/*
// @grant *
// ==/UserScript==
@Zemnmez
Zemnmez / tweetdeck-limit-override-dm-rt-fix.js
Last active March 13, 2023 15:21
tweetdeck-limit-override.js
/*
This snippet is esssentially the same as being in the Twitter longer tweets test, for tweetdeck.
The Tweet length counter is fixed by tricking TweetDeck into counting up to 140 characters, twice, so you'll see 140
instead of 280 in the counter but going over 140 will give you another set of 140 charactrs.
*/
TD.services.TwitterClient.prototype.makeTwitterCall=function(b,e,f,g,c,d,h){c=c||function(){};d=d||function(){};b=this.request(b,{method:f,params:Object.assign(e,{weighted_character_count:!0}),processor:g,feedType:h});return b.addCallbacks(function(a){c(a.data)},function(a){d(a.req,"",a.msg,a.req.errors)}),b};
twttrTxt=Object.assign({},twttr.txt,{isInvalidTweet:function(){return!1},getTweetLength:function(x){return x=twttr.txt.getTweetLength.apply(this,arguments),x<140||x/140>2?x:x%140}});