Windows only:
- Install gpg4win
or download it from https://gpg4win.org
winget install gnupg.Gpg4win
Windows only:
winget install gnupg.Gpg4win
# Workaround for setting the redirect_uri to localhost. | |
# Host is set in proxy server.py and redirect_uri takes the request host value | |
# See https://github.com/openlawlibrary/platform/issues/4281 | |
def get_redirect_uri(self, state=None): | |
"""Build redirect with redirect_state parameter.""" | |
uri = self.redirect_uri | |
if self.REDIRECT_STATE and state: | |
uri = self.url_add_parameters(uri, {"redirect_state": state}) | |
if settings.DEBUG: | |
return uri.replace('127.0.0.1', 'localhost') |
...........................................________........................
....................................,.-‘”...................``~.,..................
.............................,.-”...................................“-.,............
.........................,/...............................................”:,........
.....................,?......................................................\,.....
.................../...........................................................,}....
................./......................................................,:`^`..}....
.............../...................................................,:”........./.....
..............?.....__.........................................:`.........../.....
! Reddit clean-up | |
www.reddit.com##a[href^="/rpan/"] > h3:has-text(/Top (livestream|broadcast)/):upward(7) | |
! Linkedin clean-up | |
www.linkedin.com##.feed-shared-actor__description:has-text(/Promoted/):upward(7) | |
www.linkedin.com##.feed-shared-text-view>span:has-text(/Add to your feed/):upward(7) | |
! Twitter clean-up | |
!twitter.com##h2>div>span:has-text(/Trends for you/):upward(10) | |
!twitter.com##h2>div>span:has-text(/You might like|Who to follow/):upward(5) |
(() => { | |
let speedMs = 500 | |
setInterval(() => { | |
let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button') | |
dropdown.click() | |
setTimeout(() => { | |
let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target') |
/** | |
* Recursive function that parses table elements | |
* | |
* @param elHtml - HTML object that contains table | |
* @returns { Object } JSON element with parsed table | |
*/ | |
const parseTable = (elHtml = null) => { | |
if (elHtml === null) { return false } | |
let elName = String(elHtml.nodeName).toLowerCase() |
setInterval(function () { | |
var divs = document.getElementsByTagName('div') | |
var arr = Array.prototype.slice.call(divs) | |
var hearts = arr.filter(x => x.getAttribute('data-testid') == 'unlike') | |
hearts.forEach(h => h.click()) | |
window.scrollTo(0, document.body.scrollHeight || document.documentElement.scrollHeight); | |
}, 1000); |
module.exports = (option) => { | |
console.log('It works!', option) | |
} |
# Paste this into ~/.bash_profile | |
export PS1="\n\[$(tput sgr0)\]\[\033[38;5;27m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;63m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;6m\][\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;6m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;6m\]]\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;8m\]>\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" |