Skip to content

Instantly share code, notes, and snippets.

View Zackio's full-sized avatar

Zackary Allnutt Zackio

View GitHub Profile
@Zackio
Zackio / Docker help
Last active January 7, 2021 11:56
Docker Help
Example https://bitbucket.org/zackster/docker/src
MAke use of docker dashboard, gives lots of info
## Connecting to database
Use the information in the docker dashboard for the db imagem it lists the port and the user and pass
# Entry point
> I had problems with ssh access. So in sourcetree use ouath and http to connect
## Setup SSH
Check if you have keys already, you want id_rsa.pub:
ls -a ~/.ssh
If it's there, copy it's contents and go to bitbucket > Manage accounts > ssh
@Zackio
Zackio / php-dyld.md
Created April 4, 2019 07:07 — forked from hgrimelid/php-dyld.md
php: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found

Reinstall PHP to fix, for me that's:

wp option update home 'http://localhost'
wp option update siteurl 'http://localhost'
@Zackio
Zackio / test
Last active March 11, 2018 16:07
test
asdfasdf
```php
function hello() {
sdafsf
}
```

Install MySQL

sudo apt-install mysql-server php-mysql

Start MySQL

sudo service mysql start

Install PHP

@Zackio
Zackio / 0_reuse_code.js
Created January 1, 2014 12:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Zackio
Zackio / Javascipt: Insert string into url
Created November 25, 2013 20:41
Javascipt: Insert string into url
var lastSlash = url.lastIndexOf('/') +1;
var firstSect = url.substring( 0, lastSlash );
var endSect = url.substring( lastSlash, url.length );
url = firstSect + 'full_screen_preview/' + endSect;
@Zackio
Zackio / Javascipt: Split big arrays to smaller
Created November 25, 2013 20:38
Javascipt: Split big arrays to smaller
var splitArray = [];
while(yourArray.length) {
splitArray.push( yourArray.splice(0,10) );
}