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
""" To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory | |
brew install portaudio | |
brew install git-lfs | |
git lfs install | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
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 bash | |
# AI Helper powered by ollama AI and piper TTS | |
# Author: @c3rb3ru5d3d53c | |
# Requires: ffplay, ollama and piper | |
# ollama: https://github.com/jmorganca/ollama | |
# piper : https://github.com/rhasspy/piper | |
# start ollama first with ollama serve | |
# Global Variable Configuration |
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
/* | |
* To untick all the "personalised interests" that are used for ad targeting on twitter | |
* you go to this page: | |
* | |
* https://twitter.com/settings/your_twitter_data/twitter_interests | |
* | |
* Go to the inspector and run this code and it should untick all the ticked boxes | |
* in the list. You can change the interval to less than 650ms. You need a delay | |
* or the twitter API thinks you're trying to overload it. | |
* |
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
## Install Python3.9 interpreter on ubuntu 18.04 | |
[From here](http://devmartin.com/blog/2016/04/creating-a-virtual-environment-with-python3.4-on-ubuntu-16.04-xenial-xerus/), we can pretty much follow the exact same procedure. | |
Only this I needed to on top of that blog was the `libffi-dev` system dependency. | |
On a terminal just do the following steps: | |
Install dependencies: |
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
expect 100-continue | |
content-length 1998 | |
connection close | |
x-wc-webhook-delivery-id 36e520ebabc2fa725092ff4a47acedf2 | |
x-wc-webhook-id 3 | |
x-wc-webhook-signature 5poyFy4qB6fdvvT5pGbefZmfkpL48uD47F0WYwfmpo4= | |
x-wc-webhook-event created | |
x-wc-webhook-resource order | |
x-wc-webhook-topic order.created | |
x-wc-webhook-source https://www.website.com/ |
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
# Add user. | |
useradd -m username | |
# -m creates a home directory for the user. | |
# Set Password. | |
passwd username | |
# Set user group to sudo. | |
usermod -a -G sudo username | |
# -a option to add and ‘-G sudo’ means to add the user to the sudo group. |
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 | |
#pass in alsa or pulse to record from sound device | |
IFS=$ | |
#omit the top pixels to hide tabs and address bar | |
FIREFOX_Y_BUFFER=94 | |
FIREFOX_X_BUFFER=2 | |
if [[ ${1} =~ alsa ]] ; then | |
sound="-f alsa -ac 2 -i hw:0" | |
fi | |
if [[ ${1} =~ pulse ]] ; then |
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
>>> import pytz | |
>>> | |
>>> for tz in pytz.all_timezones: | |
... print tz | |
... | |
... | |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers |
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/python | |
# | |
# | |
# Copyright (C) 2003-2008 Benny Prijono <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
javascript:(function(){if(location.href.indexOf('http')!=0){input=prompt('URL:','http://');if(input!=null){location.href='http://web.archive.org/web/*/'+input}}else{location.href='http://web.archive.org/web/*/'+location.href;}})(); |
NewerOlder