⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
Get-ChildItem -Force -Recurse -File | | |
Select *,@{n='Owner';e={(Get-Acl -LiteralPath $_.FullName).Owner}} | | |
Where {$_.Owner -eq 'DOMAINNAME\username'} | Select FullName, Owner, Length | | |
Export-Csv Files-User.csv |
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 | |
# before running | |
# apt-get install cowsay fortune | |
COW_FILES_DIR="/usr/share/cowsay/cows/" | |
COW_FILE_ORDER=$(( (RANDOM %51) + 2)) | |
RDM_COW_FILE=$(ls -l $COW_FILES_DIR | tail -n +$COW_FILE_ORDER | head -n 1 | awk '{print $9}') | |
RDM_COW_PATH="$COW_FILES_DIR$RDM_COW_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
# | |
# Manifiesto del módulo 'GenPassword' | |
# | |
# Generado por David Pascual Rocher | |
# | |
# Generado el 12/04/2012 | |
# | |
@{ |
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-StrictMode -Version 2.0 | |
function Sysinternals-Updater | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$false)] | |
[Switch] | |
$checkOnly = $false, | |
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
USE ocsweb; | |
SELECT H.NAME, S.NAME, S.VERSION | |
FROM softwares S, hardware H | |
where S.NAME LIKE '%SoftwareName%' AND H.ID = S.HARDWARE_ID; |
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
<?php | |
header('Location: http://www.teamviewer.com/download/TeamViewerQS-wu.exe'); | |
exit(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
# Bind FS mount example | |
bindfs#/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media /var/www/django-media fuse owner=www-data,group=www-data 0 0 | |
# CIFS mount example | |
//WindowsFiler/SharedFolder /unix/path/to/folder cifs rw,uid=unix-user,gid=unix-group,username=windows-user,password=windows-pass,domain=domainame 0 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
foreach ($itFile in ls *.markdown) | |
{ | |
if ($itFile -match '(.*)\.(\w+)') | |
{ | |
Write-Host 'Renaming ' $itFile | |
$destFile = $Matches[1] + '.md' | |
mv $itFile $destFile | |
} | |
} |
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
# You must load the System.Web assembly to your powershell session to make this script work. | |
[Reflection.Assembly]::LoadWithPartialName('System.Web') | |
function GenPassword | |
{ | |
Param( | |
[int] $PasswordLength = 0, | |
[ValidateSet("low", "medium", "high")] | |
[string] $PasswordComplexity = "medium" |
OlderNewer