Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Geekin'

Goran Halusa ghalusa

🤓
Geekin'
View GitHub Profile
@ghalusa
ghalusa / jenkins_docker.md
Last active Oct 3, 2020
Set Up a Jenkins Environment using Docker
View jenkins_docker.md
@ghalusa
ghalusa / install_drupal_8_composer.md
Last active Mar 5, 2020
Installing Drupal 8 Using Composer
View 20180628_aaa_ogmt_theme_chnages.md

ogmt.inc

(sites/all/modules/ogmt/ogmt.inc)

Line 500

Was:

$classes_array = ['page-' . $n, 'pagecount-' . $page_count];
@ghalusa
ghalusa / freetds_install_ubuntu_14.md
Last active Feb 25, 2020
Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO
View freetds_install_ubuntu_14.md

Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO


Install

sudo apt-get install -y unixodbc unixodbc-dev unixodbc-bin libodbc1 odbcinst1debian2 tdsodbc php5-odbc
@ghalusa
ghalusa / youtube_id_regex.php
Created Jun 20, 2015
Extract the YouTube Video ID from a URL in PHP
View youtube_id_regex.php
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ
View dynamic_port_forwarding.md

To access a server, behind a firewall, via HTTP...

Use a server you have access to, as a proxy...

ssh -N -D 9000 user@server

Configure your web browser to use SOCKS proxy host 127.0.0.1 and port 9000.

@ghalusa
ghalusa / wellcome_player_install_run.md
Last active Aug 29, 2015
Wellcome Player Installation and Run
View wellcome_player_install_run.md

Installation + Run: 4/1/2015

NPM: Globally Installed List

ghalusa@player:~$ npm list -g --depth=0
/usr/local/lib
├── grunt-cli@0.1.13
├── n@1.3.0
├── npm@2.7.4
@ghalusa
ghalusa / drush_create_new_user.md
Last active Aug 29, 2015
Drupal Drush: Create a New User With Administrative Role
View drush_create_new_user.md

Create a New User

drush ucrt "new_user" --mail="new_user@email_address.com" --password="new_password"

Add the Administrator Role to the New User

(check the database to get the administrator ID)

@ghalusa
ghalusa / wellcome_error.txt
Last active Aug 29, 2015
Wellcome Player Error
View wellcome_error.txt
me@player:~/player$ grunt build
Running "default" task
Running "ts:dev" (ts) task
Compiling...
...
Using tsc v1.0.1
@ghalusa
ghalusa / macosx_cask.md
Last active Dec 13, 2018
Mac OS X Setup Using Homebrew Cask
View macosx_cask.md

Gor's Mac OS X

Install Brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Homebrew Cask