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
<Connector port="8080" maxHttpHeaderSize="8192" | |
maxThreads="150" minSpareThreads="25" maxSpareThreads="75" | |
enableLookups="false" redirectPort="8443" acceptCount="100" | |
connectionTimeout="20000" disableUploadTimeout="true" | |
compression="on" | |
compressionMinSize="1024" | |
noCompressionUserAgents="gozilla, traviata" | |
compressableMimeType="text/html,text/xml"/> |
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
DECLARE @dbname sysname, @days int | |
SET @dbname = NULL --substitute for whatever database name you want | |
SET @days = -50 --previous number of days, script will default to 30 | |
SELECT | |
rsh.destination_database_name AS [Database], | |
rsh.user_name AS [Restored By], | |
CASE WHEN rsh.restore_type = 'D' THEN 'Database' | |
WHEN rsh.restore_type = 'F' THEN 'File' | |
WHEN rsh.restore_type = 'G' THEN 'Filegroup' | |
WHEN rsh.restore_type = 'I' THEN 'Differential' |
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
root@rapunzel:~# bluetoothctl -a | |
[NEW] Controller 74:F0:6D:EA:D2:14 rapunzel [default] | |
[NEW] Device 00:1F:20:91:C7:8C Logitech K810 | |
Agent registered | |
[Logitech K810]# remove 00:1F:20:91:C7:8C | |
[CHG] Device 00:1F:20:91:C7:8C ServicesResolved: no | |
Device has been removed | |
[CHG] Device 00:1F:20:91:C7:8C Connected: no | |
[DEL] Device 00:1F:20:91:C7:8C Logitech K810 | |
[bluetooth]# scan on |
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
set TARGET_IP=78.24.135.113 | |
set NETWORK_INTERFACE_IP=10.100.197.60 | |
route add %TARGET_IP% mask 255.255.255.255 %NETWORK_INTERFACE_IP% metric 2 |
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
DECLARE @TimeZone VARCHAR(50) | |
EXEC MASTER.dbo.xp_regread 'HKEY_LOCAL_MACHINE', | |
'SYSTEM\CurrentControlSet\Control\TimeZoneInformation', | |
'TimeZoneKeyName',@TimeZone OUT | |
SELECT @TimeZone | |
-- OR this snippet but I am not sure I trust it yet.... | |
DECLARE @TZ SMALLINT | |
SELECT @TZ=DATEPART(TZ, SYSDATETIMEOFFSET()) |
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
from tkinter import * | |
root = Tk() | |
text = Text(root, wrap=NONE, bg="black", fg="lightgreen", font=("Consolas", 10, "normal")) | |
BG_EVEN = 'BG_EVEN' | |
BG_ODD = 'BG_ODD' | |
text.tag_config('FG_FATAL', foreground='yellow', background='red') | |
text.tag_config('FG_ERROR', foreground='orange') |
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
Name: Syndaemon | |
Commaond: syndaemon -i 1.0 -K -R -t | |
Descriptiong: Turn off trackpad while typing for Ubuntu/XBuntu |
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
#!/usr/bin/env python3 | |
# -*- coding: utf8 -*- | |
import pypyodbc | |
def show_odbc_sources(): | |
odbc_list = [] | |
for d in pypyodbc.drivers(): | |
odbc_list.append('%s' % (d)) |
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
# Take a listing of files and renames to be lowercase. The ls -1 is the selector of which files are impacted so be careful. | |
for f in `ls -1`; do mv -v "$f" "`echo $f | tr '[A-Z]' '[a-z]'`"; done |
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
synclient | |
synclient VertScrollDelta=-58 | |
synclient HorizScrollDelta=-58 |