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
if WScript.Arguments.Count = 0 then | |
WScript.Echo "Missing parameters" | |
end if | |
Sub Pause(strPause) | |
WScript.Echo (strPause) | |
End Sub | |
Function MoveOrCopyFile(Source, Destination, FileName) | |
If objFSO.FileExists(Destination & "\" & FileName) Then |
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
/*! | |
* tota11y v0.1.2 | |
* http://khan.github.io/tota11y | |
* | |
* Includes Accessibility Developer Tools | |
* http://github.com/GoogleChrome/accessibility-developer-tools | |
* | |
* Copyright (c) 2015 Khan Academy | |
* Released under the MIT license | |
* http://github.com/Khan/tota11y/blob/master/LICENSE.txt |
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 | |
# Name: updateRuby | |
# Purpose: Upgrade ruby | |
# Author: Privat Krish Mamtora Atmaram | |
# ----------------------------------------------------------------------------------- | |
usage () | |
{ | |
cat <<EOF |
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 | |
# Name: updateperl | |
# Purpose: Upgrade perl | |
# Author: Privat Krish Mamtora Atmaram | |
# ----------------------------------------------------------------------------------- | |
usage () | |
{ | |
cat <<EOF |
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
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; sudo gem update --system; gem update; gem cleanup; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; sudo composer self-update; composer global update; . updatePerl; cpan -u; meteor update;' |
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/env python | |
"""Downloads and concatenates a set list of | |
block-list files for use with Transmission""" | |
#Copyright 2013, Adam David Cox | |
#adam.david.cox@gmail.com | |
#Thanks for PabloG for downloadURL() | |
#This program is free software: you can redistribute it and/or modify | |
#it under the terms of the GNU General Public License as published by |
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 | |
$factory->define(\App\Models\User::class, function ($faker) { | |
$created = $faker->dateTimeBetween($startDate = '-30 years', $endDate = 'now'); | |
// Have 60% have updated records | |
$updated = $faker->optional($weight = 0.6)->dateTimeBetween($startDate = $created); | |
if(empty($updated)) { | |
// The rest 40% will have same date as created (unchanged record) | |
$updated = $created; |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Apache Server Configs v2.14.0 | MIT License | |
# https://github.com/h5bp/server-configs-apache | |
# (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
# access to the main server configuration file (which is usually called | |
# `httpd.conf`), you should add this logic there. | |
# | |
# https://httpd.apache.org/docs/current/howto/htaccess.html. | |
# ###################################################################### |
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
:: Name: MoveUp.cmd | |
:: Purpose: Moves all files to root. Will not move duplicates. Removes leftover empty folders. | |
:: Author: privat.mamtora@gmail.com | |
:: Version: 1.1 | |
:: Revision: May 2015 - initial version | |
:: Revision: May 2015 - Fixed issue 1# directory special character issues with ROBOCOPY | |
:: Revision: May 2015 - Fixed issue 2# Directory with exclamation marks | |
:: Revision: Jun 2015 - Fixed filenames with & | |
:: Revision: Jun 2015 - Migrate to use "Send To" menu, allows for multiple select by single process |
NewerOlder