Skip to content

Instantly share code, notes, and snippets.

View jameshiggins's full-sized avatar
😍

James Higgins jameshiggins

😍
View GitHub Profile
@garywoodfine
garywoodfine / pbcopyfy
Last active May 6, 2023 20:22
Simple Script to configure pbcopy like functionality on ubuntu
#!/bin/sh
# Copyright (C) 2009-2017 Three Nine Consulting
# Always good practice to update packages. However ask user if they would like to do so
# For explanation on how this works and why check out https://garywoodfine.com/use-pbcopy-on-ubuntu/
read -p "Do you want to update your package repositories before proceeding ? " -n 1 -r
echo #adding new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
fi
@mauricioprado00
mauricioprado00 / product-website.php
Last active July 31, 2020 12:03
magento product website assigner
<?php
/**
* Intellimage
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/osl-3.0.php
@rahuldass
rahuldass / HTML5 Starter Template.md
Last active August 29, 2015 13:56
HTML5 Starter Template #html5

###HTML5 Starter Template

Basic HTML5 starter template with HTML5 Shiv for older IE browsers.

HTML

<!doctype html>
<html lang="en">
@yanknudtskov
yanknudtskov / Search and replace in MySQL table.mysql
Created January 4, 2014 13:24
Search and replace in MySQL table
update table_name set field_name = replace(field, 'search_string', 'replace_string') where instr(field_name, 'search_string') > 0;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@ashsmith
ashsmith / .gitignore
Last active April 22, 2022 00:06
Magento 1.x .gitignore
# Never save database creditentials in your repo. Keep a dummy copy with a different name eg "local.xml.dev"
app/etc/local.xml
downloader
# If you'd like to keep the downloader, use the following instead:
# downloader/.cache
# downloader/cache.cfg
# downloader/connect.cfg
# All of the var folders can be excluded.
@markshust
markshust / gist:2782048
Created May 24, 2012 14:56
Quickly check if Magento core files are modified
diff -qrbB magento_folder client_folder
@namklabs
namklabs / mysql-database-import.bat
Last active January 23, 2018 04:29
database.mysql file import via command line
REM These commands allow you to dump a mysql database or import a database that is too large to be uploaded via PHPmyAdmin.
REM If importing, you should put your .sql file in your mysql bin dir ( for wamp: C:\wamp\bin\mysql\mysql15.5.20\bin\ )
REM If exporting, the mysql bin dir is where the exported file will show up.
REM export a mysql database
REM wamp's username is root, does not have a password
mysqldump -u username -p password(optional) databasename > databasename.sql
REM import a mysql database
mysql -u username -ppassword databasename < databasename.sql
@Kerry350
Kerry350 / git-commands.mkd
Last active April 23, 2020 04:23
Common Git commands

A little lookup for commands I use frequently

  • Commit all edited files and add a message

git commit -a -m "My commit"

  • Add all new files

git add .