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 | |
# Default Variable Declarations | |
DEFAULT="default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".key" | |
CA="ca.crt" | |
TA="ta.key" |
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 | |
# creado 5/19/15 por eljohnsmith para proyecto TVGuia | |
# Enlace a Dropbox Folder. Hay que asegurar que el final dice "dl=1" en vez de "dl=0" | |
dropboxlink=https://www.dropbox.com/sh/1bwe0nfpc92lmqb/AAAy0B2CxS56-74kZGAjore0a?dl=1 | |
filedate=$(date +%Y%m%d) | |
tvguia=~/tvguia | |
downloads=~/downloads |
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
Sub Reset_all_lastcells() | |
'David McRitchie, http://www.mvps.org/dmcritchie/excel/lastcell.htm | |
Dim sh As Worksheet, x As Long | |
For Each sh In ActiveWorkbook.Worksheets | |
x = sh.UsedRange.Rows.Count 'see J-Walkenbach tip 73 | |
Next sh | |
End Sub |
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
REM Run this as admin to configure server | |
sconfig |
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
REM Move all stale computer accounts (not active in 26 weeks) to the designated OU | |
for /f "Tokens=*" %s in ('DSQUERY computer "ou=GESD32,dc=GESD32,dc=AZ,dc=US" -inactive 26 -limit 0') do DSMOVE %s -newparent "ou=Computers,ou=Stale_Accounts,DC=GESD32,DC=AZ,DC=US" |
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 | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script set ownership for all table, sequence and views for a given database | |
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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
from django import template | |
register = template.Library() | |
@register.filter() | |
def bool_me(value): | |
''' | |
Renders Boolean as a nice FontAwesome Icon. | |
:param value: | |
:return: |
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
Get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match 'AccountDisabled'} | disable-mailbox |
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
# Filter for all lines not containing the string ',KG,' | |
^((?!,KG,).)*$ |