Without even installing drivers, the Logitech k400r tap-to-click functionality can be turned off by holding down the "FN" (function) key and the left click button on the trackpad.
Use the Hubble app to get the camera connected to a wifi network.
Find the Camera's IP address:
> sudo arp-scan --interface=enp3s0 --localnet
Interface: enp3s0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.1.100 00:19:99:0f:6a:98 Fujitsu Technology Solutions
192.168.1.102 c4:6e:1f:53:f0:8b (Unknown)
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
| def choice_by_query(name, subj, query, options={}) | |
| res = execute_query(query, {}) | |
| data = (res || []).map{|val| [val['value']]}.sort.uniq.to_json | |
| store = UIUtils.raw_js("new Ext.data.SimpleStore({fields: ['value'], data: #{data}})") | |
| options.merge!(xtype: 'select', clearTrigger: 2, inputValue: true, store: store, queryMode: 'local', pageSize: 0, | |
| displayField: 'value', valueField: 'value', forceSelection: true, selectOnFocus: true) | |
| udf(name, subj, options) | |
| end |
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
| # Print list of FreezerPro user records in JSON | |
| require 'rest_client' | |
| params = { | |
| username: 'adam', | |
| password: 'XXXX', | |
| method: 'users' | |
| } |
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
| require 'json' | |
| require 'net/http' | |
| url = URI.parse("http://XXXXXX/api") | |
| params = { | |
| username: 'admin', | |
| password: 'XXXX, | |
| method: 'import_samples', | |
| json: [ | |
| {'UID'=>'74809','Name'=>'CoolSampleName', 'Description'=>'freezerpro 6.1.14 testing'} | |
| ].to_json |
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
| require 'rest_client' | |
| params = { | |
| username: 'adam', | |
| password: 'XXXX', | |
| method: 'get_job_status', | |
| job_id: '45c443bba2756e6103b07aae30212528' | |
| } | |
| response = RestClient.post "http://enterprise3.freezerpro.com/api", params |
openssl s_client -connect 127.0.0.1:443 -ssl3
grep -r ssl_protocol /etc/nginx
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
sudo vi /etc/nginx/sites-available/appsite_ssl
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
| def sort_packs(tests) | |
| tests.map!{|t| t['Test Package']} | |
| tests.sort!{|t1,t2| t1.id <=> t2.id} | |
| '' | |
| end | |
| def custom_sort(tests) | |
| tests.sort!{|t1,t2| t1['RUN'].id <=> t2['RUN'].id} | |
| '' | |
| end |
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
| require 'json' | |
| require 'net/http' | |
| require 'net/http/post/multipart' | |
| url = URI.parse("http://XXXXX/api") | |
| req = Net::HTTP::Post::Multipart.new url.path, | |
| :username=>'Adam', | |
| :password=>'XXXX', | |
| :method=>'import_subjects', |
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
| require 'csv' | |
| unique_count = {} | |
| total_count = {} | |
| CSV.foreach('Lead_Source_Report.csv', :headers => true) do |total| | |
| total_count[total[9]] ||= 0 | |
| total_count[total[9]] += 1 | |
| end | |
| CSV.foreach('Lead_Source_Report.csv', :headers => true) do |row| |
NewerOlder