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
/* | |
* Copyright (C) 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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] | |
;;;;;;;;;;; | |
; WARNING ; | |
;;;;;;;;;;; | |
; This is the default settings file for new PHP installations. | |
; By default, PHP installs itself with a configuration suitable for | |
; development purposes, and *NOT* for production purposes. | |
; For several security-oriented considerations that should be taken | |
; before going online with your site, please consult php.ini-recommended |
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 |
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
// 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
<?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
#!/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
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
#!/bin/bash | |
# Name: updateperl | |
# Purpose: Upgrade perl | |
# Author: Privat Krish Mamtora Atmaram | |
# ----------------------------------------------------------------------------------- | |
usage () | |
{ | |
cat <<EOF |
OlderNewer