Skip to content

Instantly share code, notes, and snippets.

View chrisgalard's full-sized avatar
💭
Hacking some stuff :)

Chris Galard chrisgalard

💭
Hacking some stuff :)
View GitHub Profile
@chrisgalard
chrisgalard / append.js
Last active July 4, 2016 17:54
A method to easily append a child with attributes and content to an element
Node.prototype.append = function(element, content, attribs) {
if (typeof element === 'string') {
element = document.createElement(element);
element.innerHTML = content ? content : '';
}
for (var attrib in attribs) {
if (attribs.hasOwnProperty(attrib)) {
element.setAttribute(attrib, attribs[attrib]);
}
@chrisgalard
chrisgalard / newUser.md
Last active June 23, 2023 09:52
Creating user with SSH access in Linux

#Creating a new user with SSH access in Linux

##1. Log in as root ssh root@SERVER_IP_ADDRESS

##2. Create a new user adduser username

##3. Add the newly created user to the sudo group gpasswd -a username sudo

@chrisgalard
chrisgalard / 01-Clickfunnels CSS Snippets.md
Last active February 20, 2023 10:18
Clickfunnels CSS Snippets

Introduction

This is a series of code snippets that will help you customize your Clickfunnels pages with CSS code.

Instructions

Each one of the files below contain different snippets of code that do specific things. Everything inside the /* and */ is a comment.

Once you find the snippet that does what you want to achieve, just copy the entire thing and paste it into your "SETTINGS > CUSTOM CSS" in your funnel step.

@chrisgalard
chrisgalard / 01- Clickfunnels Image Gallery.md
Last active April 18, 2020 06:04
Clickfunnels Image Gallery
@chrisgalard
chrisgalard / 01-Clickfunnels Instagram Gallery
Last active April 18, 2020 06:03
Clickfunnels Instagram Gallery
@chrisgalard
chrisgalard / clickfunnels-fb-pixel.html
Created April 15, 2019 09:38
Tracking Facebook Events In Clickfunnels THE RIGHT WAY
<!--
This is a series of code snippets that you can use in order to track your
Facebook pixel data and events effectively in your Clickfunnels pages.
-->
<!-- Use this to track your pixel events when people go to the second step of a 2-step form -->
<script>
var submitBtn = document.querySelector('[href="#submit-form-2step"]'),
@chrisgalard
chrisgalard / cf-country-code-selector.html
Last active January 27, 2024 22:03
These snippets of code will help you to add an international country code dropdown to your phone fields. Just add a normal Clickfunnels phone field and the code will do the rest!
<!--
International country code selector for Clickfunnels
Author: Chris Galard
Website: instagram.com/chrisgalard
License: You can do whatever you want with this code. We hope it helps you!
Want help with funnels & systems to grow your online course sales?
Book a call with me:
@chrisgalard
chrisgalard / installing-mysql-8.md
Last active October 28, 2019 05:47
Installing MySQL 8.0

Installing MySQL 8.0 in Ubuntu 18.04

Step 1

Go to your tmp directory:

cd /tmp

Step 2

Download the MySQL configuration package:

@chrisgalard
chrisgalard / uninstall-mysql.md
Last active October 28, 2019 04:22
Uninstall MySQL completely from Ubuntu 8.04

How to uninstall MySQL completely from Ubuntu 18.04

sudo -i

service mysql stop

killall -KILL mysql mysqld_safe mysqld

apt-get --yes purge mysql-server mysql-client