Skip to content

Instantly share code, notes, and snippets.

View senki's full-sized avatar

Csaba Maulis senki

View GitHub Profile
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "No argument, exiting"
fi
laravel new "$@"
cd "$1" || exit
VERSION=$(php artisan --version)
git init

Keybase proof

I hereby claim:

  • I am senki on github.
  • I am senki (https://keybase.io/senki) on keybase.
  • I have a public key ASBrzGywhi8X-95AO-UKZq_iNAX1dU6JRXz76uC0FsQQVwo

To claim this, I am signing this object:

@senki
senki / reboot.scss
Last active April 5, 2016 10:02
Extracted From Bootstrap
// scss-lint:disable ImportantRule, QualifyingElement, DuplicateProperty
// Reboot
//
// Global resets to common HTML elements and more for easier usage by Bootstrap.
// Adds additional rules on top of Normalize.css, including several overrides.
// Reset the box-sizing
//
@senki
senki / brew php v5.6 upgrade.md
Last active May 2, 2016 02:30
Steps necessery to upgrade php in brew

Upgrade php in brew & keep phpcs

  • still valid for v5.6.21

Every time you upgrade php, you loose phpcs command. So, you need install it again.
Prerequirement: You need to install php with pear enabled: brew install php56 --with-pear

Steps

@senki
senki / FindChangeByList.jsx
Last active October 28, 2024 09:00
Slightly modified `FindChangeByList.jsx` for InDesign CS6 - supports multiple List file
//FindChangeByList.jsx
//An InDesign CS6 JavaScript
/*
@@@BUILDINFO@@@ "FindChangeByList.jsx" 3.0.0 15 December 2009
Mod by senki on 2015-06-29
- added dialog with list of files under FindChangeSupport
- and choose between. default is the first
*/
//Loads a series of tab-delimited strings from a text file, then performs a series
//of find/change operations based on the strings read from the file.
@senki
senki / Combine Multiple Files.jsx
Created June 25, 2015 17:03
Mass combine a bunch of indd files into one
// DESCRIPTION: Mass combine a bunch of indd files into one.
// 6 July 2013
// edited by senki on 2015-06-21
// Added ability to move all pages not just first
// INSTRUCTIONS
// Put all the files you want to combine into one document in a folder, named in the order
// you want them to appear in the book (e.g. "001.indd", "002.indd", etc. or something) so
// they appear correctly when sorted by name in finder/explorer.
@senki
senki / README.md
Last active July 25, 2016 03:09
Notify of global npm updates via Notification Center on Mac OS X

Notify of global npm updates via Notification Center on Mac OS X

Make sure the terminal notifier is installed. Install it wia brew install terminal-notifier command.
The script assumes the iTerm is installed. Go get it, or edit the npm-update-notifier.sh for your need.

  1. Put notify-update-npm.sh to your ~/bin/ directory
  2. Put notify.update.npm.plist to your ~/Library/LaunchAgents/ directory
  3. Run launchctl load ~/Library/LaunchAgents/notify.update.npm.plist

This script is run twice a day at 11 AM & 4 PM.

@senki
senki / brew php v5.5 upgrade.md
Last active November 30, 2015 09:17
Steps necessery to upgrade php in brew

Steps necessery to upgrade php in brew

  • updated for 5.5.30

If You upgrade your existing php package via brew upgrade you need to manually update your pear.conf file.

Steps

$ brew upgrade php55
@senki
senki / layerSet2PSDs.jsx
Created January 7, 2014 12:37
creates psd-copies of layersets with dialog to select layers and suffix; be advised: existing files of identical names will be overwritten without warnings;
// creates psd-copies of layersets with dialog to select layers and suffix;
// be advised: existing files of identical names will be overwritten without warnings;
// 2009, pfaffenbichler, use it at your own risk;
// mod by Csaba Maulis aka @_senki on 2014-01-07
// Changes:
// - Create PSDs instead of PDFs
// - Maintan all layers inside the LayerSet,
// - but removes all others
// based on the work of Ralf Berger (https://blogs.adobe.com/jnack/2007/01/useful_photoshop_layer_handling_scripts.html)
@senki
senki / maintenance.php
Last active December 11, 2015 04:39
WordPress Mozgatás és Migráció (Hungarian)
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<?php
$year = 2013; // Year of the countdown
$month = 1; // Month of the countdown
$day = 16; // Day of the countdown
$hour = 12; // Hour of the day
$minute = 00; // Minute of the hour
$calculation = ((mktime ($hour,$minute,0,$month,$day,$year) - time())/60);
$minutes = (int)$calculation;
?>