Skip to content

Instantly share code, notes, and snippets.

View ghalusa's full-sized avatar
🤓
Geekin'

Goran Halusa ghalusa

🤓
Geekin'
View GitHub Profile
@ghalusa
ghalusa / jenkins_docker.md
Last active October 3, 2020 01:37
Set Up a Jenkins Environment using Docker
@ghalusa
ghalusa / install_drupal_8_composer.md
Last active March 5, 2020 18:51
Installing Drupal 8 Using Composer
@ghalusa
ghalusa / 20180628_aaa_ogmt_theme_chnages.md
Last active June 28, 2018 16:04
AAA OGMT Theme Changes

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 July 10, 2023 17:44
Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO

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 June 20, 2015 23:14
Extract the YouTube Video ID from a URL in 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
@ghalusa
ghalusa / dynamic_port_forwarding.md
Created April 9, 2015 17:34
Dynamic Port Forwarding

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 August 29, 2015 14:18
Wellcome Player Installation and Run

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 August 29, 2015 14:18
Drupal Drush: Create a New User With Administrative Role

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 August 29, 2015 14:17
Wellcome Player Error
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 December 13, 2018 11:52
Mac OS X Setup Using Homebrew Cask

Gor's Mac OS X

Install Brew

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

Install Homebrew Cask