A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
if url.inStr(0, "https") = 0 | |
urlTransfer.setCertificatesFile("common:/certs/ca-bundle.crt") | |
urlTransfer.initClientCertificates() | |
end if |
sysctl -w fs.file-max=12000500 | |
sysctl -w fs.nr_open=20000500 | |
ulimit -n 4000000 | |
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
sysctl -w net.core.rmem_max=16384 | |
sysctl -w net.core.wmem_max=16384 | |
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb |
- # app/views/comments/_comment.html.slim | |
li data-controller="comment" data-action="click->comment#hello" | |
= "#{comment.message} by #{comment.user.email}" |
require 'httparty' | |
require 'uri' | |
def get_file_names(zip_url) | |
# ZIP file format: https://en.wikipedia.org/wiki/ZIP_(file_format) | |
# 1. Do an initial head request to figure out how big the file is from the | |
# content size | |
response = HTTParty.head(zip_url) | |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# copy and paste this into your terminal to start an IRB session and use Capybara's DSL to write tests interactively | |
# Thanks to Tom Clements | |
# http://tom-clements.com/blog/2012/02/25/capybara-on-the-command-line-live-browser-testing-from-irb/ | |
# I prefer using chrome... | |
# First you need to install the chromedriver https://sites.google.com/a/chromium.org/chromedriver/downloads | |
# Unzip, and move the executable somewhere in your path... | |
# e.g. | |
mv ~/Downloads/chromedriver /usr/local/bin |
ROS (10 systems) | |
In addition to that documented in the HPI above, the additional ROS was obtained: | |
Constitutional: Denies fevers or chills | |
Eyes: Denies vision changes | |
ENMT: Denies sore throat | |
CV: Denies chest pain | |
Resp: Denies SOB | |
GI: Denies vomiting or diarrhea | |
GU: Denies painful urination | |
MSK: Denies recent trauma |
#In app/models/tableless.rb | |
class Tableless < ActiveRecord::Base | |
def self.columns | |
@columns ||= []; | |
end | |
def self.column(name, sql_type = nil, default = nil, null = true) | |
columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, | |
sql_type.to_s, null) | |
end |
zngguvnf's Blog | |
Processing multiple PDFs using the command line | |
:linux: | |
<2017-12-01> | |
Update [2018-04-17 Tue] | |
Remove password from pdf | |
Remove string from pdf | |
Update [2018-03-30 Fri]: |