Skip to content

Instantly share code, notes, and snippets.

View zenithtekla's full-sized avatar

ZeTek zenithtekla

  • Fictitious(FBN): ZetekLA
  • pristinekallio@gmail.com
View GitHub Profile
// Get started with GitHub Packages
// Step 1: Use `publishConfig` option in your package.json
"publishConfig": { "registry": "https://npm.pkg.github.com/" }
// Step 2: Authenticate
$ npm login --registry=https://npm.pkg.github.com/
// Step 3: Publish
$ npm publish
@zenithtekla
zenithtekla / gist:1ce459b436d9ee6e499c4239f4eefdc3
Last active January 15, 2019 11:27
install-ispconfig3-centos.sh
#!/bin/bash
## Install ISPConfig 3.x on CentOS 7 64Bits
## http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html
## https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/2/
## http://nareshv.blogspot.com.br/2014/02/configure-hhvm-with-apache-fastcgi-on.html
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /var/www all
## Filesystem ext4
## source https://gist.github.com/jniltinho/82bbcfe54d34acc96403a7f4613ee628/
## Run as root: sudo sh install-ispconfig3-centos.sh
@zenithtekla
zenithtekla / gist:26c2a510295df6a66075333e69202208
Created July 10, 2017 06:33
Web Content Accessibility Guidelines (WCAG) 2.0 - section 508
aria-label vs sr-only
http://api.myjson.com/bins/9fisb
@zenithtekla
zenithtekla / Sublime_user_setting.xml
Last active January 18, 2018 04:36
Sublime_user_setting
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
"update_check": false,
"ignored_packages": ["Vintage"],
"default_encoding": "UTF-8",
"save_on_focus_lost": true,
@zenithtekla
zenithtekla / .gitconfig
Last active March 26, 2023 15:17
IntelliJ Mac keystrokes
[user]
email = user@email.com
name = User Name
[alias]
view = log --pretty=format:\"%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s\"
viewtime = log --pretty=format:\"%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s\" --date=relative
pristine = "!git for-each-ref --format='%(color:blue)%(authorname)%(color:reset) %09 %(color:green)%(refname:short)%(color:reset)' | grep 'Pristine Tran'"
@zenithtekla
zenithtekla / equipments.controller.js
Last active November 16, 2016 21:59
equipments.service.js
if (!vm.equipment.asset_id) {
var equipments = EquipmentsService.query().$promise;
equipments.then(function(equipments){
// vm.hints.model = _.map(equipments, 'model');
_.map(equipments, function(equipment){
vm.hints.model.push(equipment.model);
vm.hints.asset_number.push(equipment.asset_number);
vm.hints.location.push(equipment.ECMS_Location.desc);
});
@zenithtekla
zenithtekla / vendor.ts
Created November 1, 2016 18:58
Bundling vendor
import './node_modules/systemjs/dist/system.js';
import './node_modules/rxjs/bundles/Rx.js';
import './node_modules/angular2/bundles/angular2-polyfills.min.js';
import './node_modules/angular2/bundles/angular2.js';
import './node_modules/angular2/bundles/http.js';
import './node_modules/angular2/bundles/router.js';
import './node_modules/angular2/es6/dev/src/testing/shims_for_IE.js';
@zenithtekla
zenithtekla / loadScript.js
Last active October 28, 2016 20:24
Improvement on the loadScript, still not working with AngularJS
'use strict';
// src: https://github.com/zenithtekla/mantisbt/blob/r6/plugins/UTILS_plugin/bower_components/mantis_extended_kernel/client/js/buildscript.js
// further ref: http://stackoverflow.com/a/950146/5828821
var loadScript = function(arr){
var loaded = [];
var ignored = [];
for (var i = 0; i < arr.length; i++) {
var _ = arr[i];
@zenithtekla
zenithtekla / data.js
Created September 19, 2016 20:35
for NodeMYSQL
{ "query_text": "UPDATE `mantis_query_manex_sync_table` SET `query_text`='UPDATED' WHERE `id` = '1'", "status":1 }