- Create
UNLOGGEDtable. This reduces the amount of data written to persistent storage by up to 2x. - Set
WITH (autovacuum_enabled=false)on the table. This saves CPU time and IO bandwidth on useless vacuuming of the table (since we neverDELETEorUPDATEthe table). - Insert rows with
COPY FROM STDIN. This is the fastest possible approach to insert rows into table. - Minimize the number of indexes in the table, since they slow down inserts. Usually an index
on
time timestamp with time zoneis enough. - Add
synchronous_commit = offtopostgresql.conf. - Use table inheritance for fast removal of old data:
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
| %% Author: bokner | |
| %% Created: Apr 10, 2010 | |
| %% Description: HTTP digest authentication | |
| %% Note: the code follows the informal explanation given on Wikipedia. | |
| %% Note: the test/0 function doesn't intend to send a proper data to webdav service, | |
| %% it just shows how to pass the authorization. | |
| %% Disclaimer: Use on your own risk. The author disclaims any liability | |
| %% with regard to using this code. | |
| -module(digest_auth). |
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
| obj-m += tcp_svr_sample.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea |
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
| <style> | |
| #dropZone { | |
| color: #555; | |
| font-size: 18px; | |
| text-align: center; | |
| width: 400px; | |
| padding: 50px 0; | |
| margin: 50px auto; |
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
| %%%------------------------------------------------------------------- | |
| %%% @author egobrain <egobrain@linux-ympb> | |
| %%% @copyright (C) 2012, egobrain | |
| %%% @doc | |
| %%% Function for uploading files and properties,which were sent as a | |
| %%% multipart. Files are stored in tmp_folder with random name, | |
| %%% generated by tmp_filename function. | |
| %%% @end | |
| %%% Created : 25 Mar 2012 by egobrain <egobrain@linux-ympb> | |
| %%%------------------------------------------------------------------- |
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
| #!/bin/bash | |
| [ -f /usr/bin/gcc ] || (apt-get update && apt-get install -y build-essential libncurses-dev libssl-dev chrpath) | |
| #wget http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2d.tar.gz | |
| #tar zxf libatomic_ops-7.2d.tar.gz | |
| #cd libatomic_ops-7.2/ | |
| #./configure --prefix=/opt/flussonic | |
| #make install | |
| #cd .. |
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
| #!/usr/bin/env python | |
| # | |
| # tool to parse JFFS2 images | |
| # and more importantly, guess the erase block size | |
| # | |
| # 2015.10.19 darell tan | |
| # | |
| from struct import unpack | |
| from argparse import ArgumentParser |
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
| Run the following: | |
| iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT | |
| iptables -A FORWARD -m pkttype --pkt-type multicast -j ACCEPT | |
| iptables -A OUTPUT -m pkttype --pkt-type multicast -j ACCEPT | |
| Or: | |
| iptables -A INPUT -s 224.0.0.0/4 -j ACCEPT | |
| iptables -A FORWARD -s 224.0.0.0/4 -d 224.0.0.0/4 -j ACCEPT |
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
| Summary of passwords by sperglord8008s, updated November 1. 2020. For login try "root", "default", "defaul" or "root" | |
| 00000000 | |
| 059AnkJ | |
| 4uvdzKqBkj.jg | |
| 7ujMko0admin | |
| 7ujMko0vizxv | |
| 123 | |
| 1111 | |
| 1234 |
Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav
Hello, brethren :-)
As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".
OlderNewer