Skip to content

Instantly share code, notes, and snippets.

View rcdelfin's full-sized avatar
:octocat:

Raymund C. Delfin rcdelfin

:octocat:
View GitHub Profile
define [
'controllers/controllers'
'services/form-data'
], (module) ->
'use strict'
NAME = 'form-data'
module.controller NAME, ['$scope', '$location', '$routeParams', 'form-data', ($scope, $location, $routeParams, formData) ->
console.log NAME, ' controller created'
.mauticform_wrapper {}
.mauticform-innerform {}
.mauticform-post-success {}
.mauticform-name { font-weight: bold; font-size: 1.5em; margin-bottom: 3px; }
.mauticform-description { margin-top: 2px; margin-bottom: 10px; }
.mauticform-error { margin-bottom: 10px; color: red; }
.mauticform-message { margin-bottom: 10px;color: green; }
.mauticform-row { display: block; margin-bottom: 20px; }
.mauticform-label { font-size: 1.1em; display: block; font-weight: bold; margin-bottom: 5px; }
$('intro-page-frm').each(function(){
function injectCSS(){
$iframe.contents().find('head').append(
$('<link/>', { rel: 'stylesheet', href: 'https://gist.githubusercontent.com/rcdelfin/c7037a77c92d4d554c6f1ae9f76ca328/raw/79d045d3c2d3a4bb99be22796a6628d7f21b0e56/untangl-intro-page.css', type: 'text/css' })
);
}
var $iframe = $(this);
$iframe.on('load',function(){
injectCSS();
{
"name": "Virtually Replaced Tool",
"version": "1.1.6",
"manifest_version": 2,
"description": "VirtuallyReplaced Extension",
"homepage_url": "https://virtuallyreplaced.com/",
"icons": {
"16": "assets/icons/icon16.png",
"48": "assets/icons/icon48.png",
"128": "assets/icons/icon128.png"
@rcdelfin
rcdelfin / cloud-config-master.yaml
Created November 9, 2016 11:19 — forked from ryancurrah/cloud-config-master.yaml
CoreOS w/ Kubernetes Cloud Config
#cloud-config
#type: master
---
hostname: master01
users:
- name: core
passwd: $6$rounds=4096$qTfXAnCBjkQ326$zRFWfe45s3quKvxl2pax1Ml44PCPNQQYXcJ.r0FfkN5jwecdipepTLMNEQCsAcGJkH5NA6BCPr4VIGJNftBIe.
groups:
- sudo
@rcdelfin
rcdelfin / import_csv_to_mongo
Created February 1, 2017 17:39 — forked from mprajwala/import_csv_to_mongo
Store CSV data into mongodb using python pandas
#!/usr/bin/env python
import sys
import pandas as pd
import pymongo
import json
def import_content(filepath):
mng_client = pymongo.MongoClient('localhost', 27017)
@rcdelfin
rcdelfin / gist:3c3321b72a325ea58aab777a1681f05f
Created October 17, 2017 07:09 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@rcdelfin
rcdelfin / rancher2customnodecmd.sh
Last active September 28, 2018 11:59 — forked from superseb/rancher2customnodecmd.sh
Add custom node to Rancher 2.0 (from v2.0.0-alpha26 and up)
#!/bin/bash
docker run -d -p 80:80 -p 443:443 --name rancher-server rancher/rancher:latest
while ! curl -k https://localhost/ping; do sleep 3; done
# Login
LOGINRESPONSE=`curl -s 'https://127.0.0.1/v3-public/localProviders/local?action=login' -H 'content-type: application/json' --data-binary '{"username":"admin","password":"admin"}' --insecure`
LOGINTOKEN=`echo $LOGINRESPONSE | jq -r .token`
# Change password
@rcdelfin
rcdelfin / homestead-manual-install.md
Created December 9, 2018 09:59 — forked from idecardo/homestead-manual-install.md
Laravel Homestead Manual Installation

Getting Started

Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine. Read more...

Download

Download homestead box:

@rcdelfin
rcdelfin / init.vim
Created October 29, 2020 23:54 — forked from benawad/init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'