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
# Resume UUID set to enable hybernation, will write RAM to swap | |
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=<PARTITION UUID> loglevel=3 quiet" |
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
[Sleep] | |
suspend=suspend-then-hibernate | |
HibernateState=disk | |
# Suspend then Hibernate after 45 min | |
HibernateDelaySec=2700 |
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
[Login] | |
HandlePowerKey=suspend-then-hibernate | |
HandleLidSwitch=suspend-then-hibernate |
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
[Unit] | |
Description=Powertop tunings | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/powertop --auto-tune | |
[Install] | |
WantedBy=multi-user.target |
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
publication_title = bs.find('invention-title').text | |
publication_num = bs['file'].split("-")[0] | |
publication_date = bs.find('publication-reference').find('date').text | |
application_type = bs.find('application-reference')['appl-type'] | |
classifications = [] | |
for classes in bs.find_all('classifications-ipcr'): | |
for el in classes.find_all('classification-ipcr'): | |
cclassifications.append(el.find('section').text | |
+ el.find('class').text |
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
# Load USPTO .xml document | |
xml_text = html.unescape(open(filename, 'r').read()) | |
# Split out patent applications / grants | |
for patent in xml_text.split("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"): | |
# Skip if it doesn't exist | |
if patent is None or patent == "": | |
continue | |
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
container_commands: | |
01_install_webpack: | |
command: npm install --save-dev webpack | |
02_precompile: | |
command: bundle exec rake assets:precompile |
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
commands: | |
01_install_yarn: | |
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y" | |
02_download_nodejs: | |
command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -" | |
03_install_nodejs: | |
command: "yum -y install nodejs" | |
04_mkdir_webapp_dir: | |
command: "mkdir /home/webapp" |
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
container_commands: | |
command: bundle exec rails assets:precompile |
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
commands: | |
01_install_yarn: | |
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y" | |
02_download_nodejs: | |
command: curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - | |
03_install_nodejs: | |
command: yum -y install nodejs |
NewerOlder