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
using System; | |
using System.Collections.Generic; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Technical | |
{ | |
public class PasswordGenerator | |
{ | |
/// <summary> |
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 | |
rem Download Closure compiler from: http://dl.google.com/closure-compiler/compiler-latest.zip | |
echo JavaScript code Compressor | |
echo Processing archive %1 | |
echo Output to . | |
java -jar C:\Path to compiler.jar\compiler.jar %1 --js_output_file=%~n1-compressed%~x1 | |
echo | |
echo Finished... |
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 | |
rem Download YUI Compressor from: https://github.com/yui/yuicompressor/releases/latest | |
echo CSS Compressor | |
echo Processing file %1 | |
echo Output to . | |
java -jar C:\Users\YUIcompressorPath\yuicompressor-2.4.8.jar %1 --type css -o %~n1-compressed%~x1 | |
echo | |
echo Finished... |
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 | |
echo Disables hibernate option in windows 7 (hiberfile.sys disappears) | |
echo Must be run in prompt with privileges | |
powercfg.exe -h off |
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 | |
rem you must already have installed package jade in npm: npm install jade --global | |
echo Usage jadew.bat in a directory with .jade files | |
set "files=" | |
for /f %%F in ('dir /b *.jade') do call set files=%%files%% "%%F" | |
jade -w --pretty %files% |
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 | |
echo flac2mp3.bat | |
echo Version : 0.1 | |
echo Flac CLI and LAME CLI version should be already installed | |
echo this batch file must be in a path or within the same directory to convert files | |
echo Example: | |
echo "cd c:\Users\YourUsername\Music\myfavouriteflacalbum" | |
echo "flac2mp3" + ENTER | |
echo Decompressing to .wav files .flac files in folder | |
for /f "delims=" %%i in ('dir /b "*.flac"') 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
@rem java -jar htmlcompressor.jar [options] [input] | |
@Echo Off | |
echo HTML Compressor | |
echo Processing Archive %1 | |
echo Salida a %~n1-compressed%~x1 | |
java -jar C:\yourpathtohtmlcompressor\htmlcompressor-1.5.3.jar -t html -o .\%~n1-compressed%~x1 %1 | |
echo | |
echo Terminated... |
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 | |
echo You already have had on environmental variables the path to Sublime Text | |
echo Example: d:\projects> subl . | |
echo Executing Sublime Text!!! | |
start sublime_text.exe %1 |
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 | |
echo KillWinamp Running... | |
TASKKILL /F /IM winamp.exe |
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
// Function that returns Custom Field Named "post-icon" and displays it like an image wrapped in an anchor on screen | |
function test_custom_fields(){ | |
global $post; | |
query_posts('showposts=3&offset=0'); | |
if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, 'post-icon', true); ?>" alt="Icon for Post #<?php the_ID(); ?>" width="120" height="120"/></a> | |
<?php | |
endwhile; | |
endif; |