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
@echo off | |
rd c:\users-logon-dump /q /s | |
md c:\users-logon-dump | |
setlocal ENABLEDELAYEDEXPANSION | |
set qry=dsquery * -filter "(scriptPath=*)" -attr cn,scriptPath -limit 0 | |
for /f "Skip=1 Tokens=*" %%a in ('%qry%') do ( | |
set rawline=%%a |
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
#!/usr/bin/ruby | |
require 'chef/config' | |
require 'chef/log' | |
require 'chef/rest' | |
$chef_server_url = "https://localhost" | |
$client_name = "chef-admin" | |
$signing_key_filename="/root/.chef/chef-admin.pem" |
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 | |
# | |
# Copyright (C) 2013, Roberto C. Morano <[email protected]> | |
# | |
# This software is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This software is distributed in the hope that it will be useful, |
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 | |
# | |
# Copyright (C) 2013, Roberto C. Morano <[email protected]> | |
# | |
# This software is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This software is distributed in the hope that it will be useful, |
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
# do not check certs when connecting thru ssh NOTE: you shouldn't use it as default | |
alias ssh-no-check='ssh -o StrictHostKeyChecking=no' | |
# 'ps' that shows cgroupped processes | |
# | |
# check url for more info: http://0pointer.de/blog/projects/systemd-for-admins-2.html | |
# | |
alias psc='ps xawf -eo pid,user,cgroup,args' | |
# docker |
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
[user] | |
name = Roberto C. Morano | |
email = [email protected] | |
[include] | |
path = ~/.gitconfig.d/alias.txt | |
path = ~/.gitconfig.d/alias-for-cvs.txt | |
path = ~/.gitconfig.d/alias-for-gitk.txt | |
path = ~/.gitconfig.d/alias-for-rails.txt | |
path = ~/.gitconfig.d/alias-for-svn.txt |
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 | |
CHEF_REPO=/var/lib/chef-repo | |
CHEF_FILE=/tmp/Cheffile; test -d $(dirname $CHEF_FILE) || mkdir -p $(dirname $CHEF_FILE) | |
SOLO_RB=/etc/chef/solo.rb; test -d $(dirname $SOLO_RB) || mkdir -p $(dirname $SOLO_RB) | |
SOLO_JSON=/etc/chef/solo.json; test -d $(dirname $SOLO_JSON) || mkdir -p $(dirname $SOLO_JSON) | |
GEM_PREDEPENDS="librarian chef" | |
RVM_RUBY_VER=1.9.2 | |
# changed rvm installation from rvm-cookbook to rvm.io scripts again |
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
awk -F: '$NF == "/bin/tcsh" {print $1}' /etc/passwd | |
awk -F: '$1 == "johndoe" {print $1}' /etc/passwd |
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
# Postfix stuff | |
QUEUEID (?:[A-F0-9]+|NOQUEUE) | |
EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) | |
#RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?:%{POSREAL:relayport}))) | |
POSREAL [0-9]+(.[0-9]+)? | |
#DELAYS %{POSREAL:a}/%{POSREAL:b}/%{POSREAL:c}/%{POSREAL:d} | |
DELAYS (%{POSREAL}[/]*)+ | |
DSN %{NONNEGINT}.%{NONNEGINT}.%{NONNEGINT} |
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 | |
# | |
# Copyright (C) 2013, Roberto C. Morano <[email protected]> | |
# | |
# This software is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This software is distributed in the hope that it will be useful, |
OlderNewer