Skip to content

Instantly share code, notes, and snippets.

View davidstrauss's full-sized avatar

David Strauss davidstrauss

View GitHub Profile
#!/usr/bin/python
import subprocess
import sys
import fcntl
if sys.argv[1] == "is-wrapped":
print("Yes, this is the wrapped version with locking.")
sys.exit(0)
mysql> update users set pass = "xxxx8e3b68afdf82e8ae4e9fb6fxxxx' where uid = 1;
"> ;
"> "
-> ;
Query OK, 616 rows affected, 616 warnings (0.04 sec)
Rows matched: 616 Changed: 616 Warnings: 616

David

The high-level API currently renames unlinked files to ".fuse_hiddenXXX" and manages them using the standard file access callbacks provided by the FUSE-based file system. This creates poor performance for network-based FUSE file systems that already open file descriptors against files managed in a local cache. It's unnecessary to ever write such files up to a server.

For such file systems (including our recent work on FuseDAV), it would be better to just invoke unlink(), even while the file is still open.

--- curl-7.24.0/lib/nss.c 2013-05-07 16:14:03.713121076 -0700
+++ curl-7.24.0.patch/lib/nss.c 2013-05-07 16:48:31.390403275 -0700
@@ -1484,3 +1484,3 @@ static ssize_t nss_recv(struct connectda
- nread = PR_Recv(conn->ssl[num].handle, buf, (int)buffersize, 0, -1);
+ nread = PR_Recv(conn->ssl[num].handle, buf, (int)buffersize, 0, PR_INTERVAL_NO_WAIT);
if(nread < 0) {
[straussd@titan ~]$ sudo semodule -l
[sudo] password for straussd:
abrt 1.2.0
accountsd 1.0.0
acct 1.5.0
afs 1.7.0
aiccu 1.0.0
aide 1.6.0
aisexec 1.0.1
ajaxterm 1.0.0
import pycassa
sm = pycassa.system_manager.SystemManager('127.0.0.1:9160')
keyspaces = sm.list_keyspaces()
for keyspace in keyspaces:
if keyspace == 'system':
continue
cfs = sm.get_keyspace_column_families(keyspace)
%global _hardened_build 1
%global backends %{nil}
Name: pdns
Version: 3.3
Release: 3%{?dist}
Summary: A modern, advanced and high performance authoritative-only nameserver
Group: System Environment/Daemons
License: GPLv2
URL: http://powerdns.com
Hello David,
I called Eureka and they do indeed sell the rainfly for the Sunrise 9, and they do have it in stock. The price is $60 plus $13.99 shipping, and the product must be picked up at the store.
So we can order it for you.
However, you might want to consider ordering directly through Eureka, because they currently have it on sale for $48. I don’t know how much the shipping would be. Because of the intricacies of our Special Order program, we are not able to match manufacturers’ sale prices.
Please let us know which route you decide to go.
[root@personal-19 ~]# iotop
Traceback (most recent call last):
File "/usr/sbin/iotop", line 17, in <module>
main()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 620, in main
main_loop()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 610, in <lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 508, in run_iotop
return curses.wrapper(run_iotop_window, options)
lappi ~ # cat /etc/systemd/system/lxc-mpd.service
[Unit]
Description=Linux Container %i
After=network.target
[Service]
Type=forking
ExecStartPre=/bin/mount --make-rprivate /
ExecStart=/usr/local/bin/lxc-start -d -n mpd -o /data/vm/lxc/mpd/mpd.log
ExecStop=/usr/bin/kill -sSIGPWR $MAINPID