This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This stylesheet can be used to hide all but reply notifications on your Bluesky notifications page (https://bsky.app/notifications) | |
You'll generally need a plugin such as https://addons.mozilla.org/en-US/firefox/addon/styl-us/ on firefox - | |
other plugins or ways of adding a user stylesheet are available for other browers. | |
You'll probably only want to enable it on the one page, and you'll have to turn it off to see any other notification types. | |
This stylesheet will work until something critical changes on the Bluesky notifications page. | |
If it breaks, the [data-testid="notificationsScreen"] line is the most likely culprit - you can just remove it & the matching {}s | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Use this CSS either as a browser stylesheet or, if you run your own instance, as Site Custom CSS, to | |
* make images without alt-text obvious in your web interface. | |
* | |
* Hover over any obscured image to view it normally. | |
* | |
* Safari user stylesheet: Safari -> Settings -> Advanced Stylesheet | |
* Chrome / Firefox: see https://www.thoughtco.com/user-style-sheet-3469931 | |
* Mastodon (v4) admin: Preferences -> Administration -> Appearance -> Custom CSS | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
file_path = '241584.json' | |
with open(file_path, 'r') as f: | |
data = json.loads(''.join(f.readlines())) | |
sbyc = data['data']['attributes']['signatures_by_country'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function generateJediName($words = 2) | |
{ | |
$vowels = ['a', 'e', 'i', 'o', 'u']; | |
$parts = []; | |
for ($i = 0; $i < $words; $i++) { | |
$parts[$i] = chr(rand(65, 90)); // upper case | |
$wordLength = rand(4, 7); | |
for ($j = 0; $j < ($wordLength - 1); $j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\u@rgmac:\w $ " | |
export PATH=/Users/richardg/Library/Python/2.7/bin/:$PATH | |
export PATH_DIST_PHP=$PATH | |
function setPhp56 { | |
export PATH=/usr/local/Cellar/php56/5.6.17/bin:$PATH_DIST_PHP | |
php --version | |
} | |
function setPhp7 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Help from: | |
http://toodlepip.co.uk/2014/installing-mongo-mongo-php-mac-osx-mavericks-mamp/ | |
https://jellystyle.com/2012/12/installing-php-extensions-with-mamp | |
Install MAMP: https://www.mamp.info/en/downloads/ | |
export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH | |
PHP src from http://php.net/downloads.php - get same version as MAMP uses! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Developed from http://www.shortlist.com/tech/gadgets/heres-how-to-replace-twitters-heart-with-your-own-emoji | |
Copy / paste your own emojis into the content: lines below | |
Safari: Preferences -> advanced -> Style Sheet | |
Other browsers: https://userstyles.org/ | |
*/ | |
.HeartAnimationContainer { | |
visibility: hidden; | |
} | |
.HeartAnimationContainer:after { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
param=$1 | |
param=$(echo "$param" | tr '[:lower:]' '[:upper:]') | |
case $param in | |
"ON") | |
state=TRUE | |
;; | |
"TRUE") | |
state=TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 | |
# http://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-ssh-in-jenkins |
NewerOlder