title | author | layout | permalink |
---|---|---|---|
A test |
Melanie |
news |
/news/test |
This file contains hidden or 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 speech_recognition as sr | |
filename = "2101.wav" | |
r = sr.Recognizer() | |
with sr.AudioFile(filename) as source: | |
# listen for the data (load audio to memory) | |
audio_data = r.record(source) | |
# recognize (convert from speech to text) | |
text = r.recognize_google(audio_data) | |
print(text) |
This file contains hidden or 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 sys | |
from bs4 import BeautifulSoup | |
import solr | |
import hashlib | |
import urllib.request | |
import xml.etree.ElementTree as ET | |
limit = 0 # How many iterations max? Enter 0 for no limit. | |
solrUrl = 'solrURL' # The URL of the solr instance | |
sitemaps_ns = 'http://www.sitemaps.org/schemas/sitemap/0.9' # The xmlns for the sitemap schema |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
""" | |
Usage: python script.py search_string replace_string dir | |
Eg. python batchreplace.py galleries productions /Sites/cjc/application/modules/productions/ | |
And it will search recursively in dir | |
and replace search_string in contents | |
and in filenames. | |
Case-sensitive | |
""" | |
from sys import argv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
git clone https://github.com/open360labs/timeoff-management.git | |
cd timeoff-management | |
npm install https://github.com/mapbox/node-sqlite3/tarball/master | |
npm install | |
npm start |
This file contains hidden or 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
* Before screen ADAPL for web links | |
integer occ, linkocc, urlok | |
text testurl[0] | |
x1 = null | |
linkocc = 1 | |
urlok = 0 | |
testurl = '' |
This file contains hidden or 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
sudo su - | |
apt install unattended-upgrades | |
nano /etc/apt/apt.conf.d/50unattended-upgrades | |
Uncomment or change to the below: | |
"${distro_id}:${distro_codename}-updates"; | |
Unattended-Upgrade::Mail "[email protected]"; | |
Unattended-Upgrade::MailOnlyOnError "true"; | |
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true"; |