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
""" | |
MIT License | |
Copyright (c) 2023 Matthew Hawn | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"math/rand" | |
"sync" | |
"time" |
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
--- yubiadmin/apps/freerad.py 2014-03-04 16:36:11.468515179 -0700 | |
+++ ~/freerad.py 2014-03-04 16:39:01.224515159 -0700 | |
@@ -31,7 +31,7 @@ | |
from yubiadmin.util.config import parse_block | |
from yubiadmin.apps.dashboard import panel | |
from wtforms import Form | |
-from wtforms.fields import TextField | |
+from wtforms.fields import TextField,PasswordField | |
import os | |
import re |
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
Sep 19 11:36:47 it-dba kernel: [ 1668.612148] WARNING: CPU: 3 PID: 8065 at /home/matthewh/no-snap/btrfs/ubuntu-precise/fs/btrfs/inode.c:2206 record_one_backref+0x3a9/0x420 [btrfs]() | |
Sep 19 11:36:47 it-dba kernel: raid6_pq async_tx ptp ahci pps_core libahci raid1 raid0 multipath linear | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612181] Hardware name: Dell Inc. OptiPlex 790/0HY9JP, BIOS A17 03/14/2013 | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612185] 0000000000000000 ffff88039e3e1a98 ffffffff8106534c ffff88039e3e1a78 | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612190] Call Trace: | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612197] [<ffffffff8106534c>] warn_slowpath_common+0x8c/0xc0 | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612210] [<ffffffffa01377c9>] record_one_backref+0x3a9/0x420 [btrfs] | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612233] [<ffffffffa018a3f2>] iterate_leaf_refs+0x52/0xc0 [btrfs] | |
Sep 19 11:36:47 it-dba kernel: [ 1668.612255] [<ffffffffa018ce58>] iterate_extent_inodes+0x198/0x270 [btrfs] | |
Sep 19 11:36:47 it-dba kernel: [ |
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
diff -r lib/python2.7/site-packages/m2wsgi//io/gevent.py mongrel2/m2wsgi/m2wsgi//io/gevent.py | |
83,87c83 | |
< | |
< def __init__(self, *args, **kwargs): | |
< super(_Socket,self).__init__(*args,**kwargs) | |
< self._polled_recv = None | |
< | |
--- | |
> _polled_recv = None |
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
diff --git a/app/views/file/email.php b/app/views/file/email.php | |
index a4c6396..b5a162d 100644 | |
--- a/app/views/file/email.php | |
+++ b/app/views/file/email.php | |
@@ -1,4 +1,4 @@ | |
-<h2>Envoyer le fichier par email <span class="filename">(<?php echo h($file->file_name) ?>)</span></h2> | |
+<h2><?php echo __("Send via email:") ?> <span class="filename">(<?php echo h($file->file_name) ?>)</span></h2> | |
<?php echo partial ('file/_mailForm.php', array ('file' => $file)) ?> |
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
CREATE TABLE "fz_file_log" | |
( | |
"id" serial NOT NULL, | |
"file_id" numeric(20,0) NOT NULL, | |
"logged_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
"ip" inet NOT NULL, | |
"log_type" character varying NOT NULL, | |
"uid" character varying, | |
"guest_id" numeric(20,0), |
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
76c5 | |
Author: matthewh <matthewh@donaanacounty.org> | |
Date: Mon Jun 6 16:15:46 2011 -0600 | |
Add File Logging | |
diff --git a/app/controllers/File.php b/app/controllers/File.php | |
index 6663520..0b2375e 100644 | |
--- a/app/controllers/File.php | |
+++ b/app/controllers/File.php |
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
diff --git a/resources/js/filez.js b/resources/js/filez.js | |
index f0de9db..7ec38eb 100755 | |
--- a/resources/js/filez.js | |
+++ b/resources/js/filez.js | |
@@ -330,6 +330,8 @@ var appendFile = function (html) { | |
'<li class="file '+cssClass+'" style="display: none;">'+html+'</li>' | |
); | |
files.children ('li:first').slideDown (500); | |
+ files = $(settings.fileList); | |
+ files.children ('li:first').initFileActions(); |
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
diff --git a/app/controllers/File.php b/app/controllers/File.php | |
index 5f8e311..ef57650 100644 | |
--- a/app/controllers/File.php | |
+++ b/app/controllers/File.php | |
@@ -254,7 +254,7 @@ class App_Controller_File extends Fz_Controller { | |
* @param App_Model_File $file File to send | |
*/ | |
protected function sendFile (App_Model_File $file, $forceDownload = true) { | |
- $mime = file_mime_content_type ($file->getFileName ()); | |
+ $mime = $file->getMimetype(); |
NewerOlder