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
server { | |
listen 10.9.8.7:443; | |
server_name trac.example; | |
ssl on; | |
ssl_certificate /etc/ssl/trac.example.crt; | |
ssl_certificate_key /etc/ssl/trac.example.key; | |
ssl_session_timeout 5m; |
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 optparse import OptionParser | |
# The md5 module is deprecated in Python 2.5 | |
try: | |
from hashlib import md5 | |
except ImportError: | |
from md5 import md5 | |
realm = 'trac' | |
# build the options | |
usage = "usage: %prog [options]" |
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/bash | |
# | |
# ANSI color scheme script featuring Space Invaders | |
# | |
# Original: http://crunchbang.org/forums/viewtopic.php?pid=126921%23p126921#p126921 | |
# Modified by lolilolicon | |
# | |
f=3 b=4 | |
for j in f b; do |
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
#!/bin/bash | |
# ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### | |
# colortest (tests the colors of your terminal using ANSI codes) | |
# | |
# written by: Josh D. Dotson, Oct 9th, 2011 | |
# License as follows: | |
# Copyright (c) 2011 Josh D. Dotson | |
# | |
# YOU ARE HEREBY GRANTED PERMISSION TO USE THIS HOW YOU SEE FIT, AS PUBLIC DOMAIN. | |
# IF YOUR COUNTRY, STATE OR TOWNSHIP DOES NOT PERMIT SUCH, IT IS LICENSED SIMILAR TO |
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
@echo off | |
IF "%PROJECT%" == "" ( | |
prompt $e[0;32;40m$p$e[0;32m:$s$e[39m | |
) ELSE ( | |
prompt $e[0;34;40m$c%PROJECT%$f$s$e[0;32;40m$p$e[0;32m:$s$e[39m | |
) | |
@echo 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
Private Sub StyleKill() | |
Dim styT As Style | |
Dim intRet As Integer | |
For Each styT In ActiveWorkbook.Styles | |
On Error Resume Next | |
If Not styT.BuiltIn Then styT.Delete | |
On Error GoTo 0 | |
Next styT | |
End Sub |
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
Option Explicit | |
Sub AutoFit() | |
Dim Sht As Worksheet | |
Set Sht = ActiveSheet | |
With Selection | |
.EntireColumn.AutoFit | |
End With |
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
Type StoreRangeInfo | |
'TODO: Store workbook name, file name. | |
Columns() As Variant | |
Widths() As Variant | |
End Type | |
Public AutoFitUndoData As StoreRangeInfo | |
Private Sub PrepareAutoFitUndo(Rng As Range) | |
ReDim AutoFitUndoData.Columns(1 To Rng.Columns.Count) |
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
'Credits to Leo Heuser, as posted by Ivan Moala at http://www.mrexcel.com/archive/VBA/5160.html | |
Sub DeleteUnusedCustomNumberFormats() | |
Dim Buffer As Object | |
Dim Sh As Object | |
Dim SaveFormat As Variant | |
Dim fFormat As Variant | |
Dim nFormat() As Variant | |
Dim xFormat As Long | |
Dim Counter As Long | |
Dim Counter1 As Long |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer