Skip to content

Instantly share code, notes, and snippets.

View nardhar's full-sized avatar

Felix Carreño B. nardhar

View GitHub Profile
.pretty-buttons(@color, @background, @text-shadow: none) {
color: @color;
#gradient > .vertical(lighten(@background, 5%), darken(@background, 5%), 0%, 100%);
border-color: darken(@background, 10%);
border-bottom-color: darken(@background, 20%);
text-shadow: @text-shadow;
.box-shadow(inset 0 1px 0 rgba(255, 255, 255, .1));
&:hover,
@nardhar
nardhar / msgconvert.txt
Last active May 4, 2017 13:45
Convert MSG to EML
install msgconvert
$ sudo apt-get install libemail-outlook-message-perl
then convert file.msg
$ msgconvert file.msg
@nardhar
nardhar / git-server-centos7.md
Last active June 14, 2021 20:49
Git Server CentOS 7

Configure Git Server on CentOS 7

Server

$ yum install git-core
$ sudo useradd git
$ sudo passwd git
$ sudo su git
$ cd
@nardhar
nardhar / wordpress-centos7.md
Last active September 6, 2017 13:49
wordpress CentOS 7

Install Wordpress on CentOS 7

Install LAMP

$ sudo yum install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt php-xmlrpc unzip wget -y

Enable Apache and MariaDB as service

$ sudo systemctl start httpd
@nardhar
nardhar / postgres-centos7.md
Created July 24, 2017 18:11
Postgres CentOS 7
$ sudo yum install postgresql-server
$ sudo postgresql-setup initdb
$ sudo vi /var/lib/pgsql/data/pg_hba.conf

Find the lines that looks like this, near the bottom of the file: pg_hba.conf excerpt (original)

host all all 127.0.0.1/32 ident
@nardhar
nardhar / atom-packages-themes.md
Last active August 10, 2017 03:46
atom packages and themes

Packages for Atom

  1. angularjs
  2. atom-grails
  3. atom-typescript
  4. autocomplete
  5. busy-signal
  6. file-icons
  7. itentions
  8. language-groovy
  9. language-groovy-cloned-from-java
@nardhar
nardhar / replace-git-tag.md
Created August 18, 2017 21:50
Replace GIT tag approach
@nardhar
nardhar / shouldjs-plugin-idea.js
Last active September 13, 2017 20:07
node js Test Server Should idea
// Is there something like this?
const RequestTest = require('should-request-test');
describe('Starting controller testing', () => {
// calling the express app
const server = require('src/index');
// controller endpoint
const endpoint = '/api/v1/myResource';
const requestTest;
@nardhar
nardhar / encryption.js
Created December 22, 2017 19:36 — forked from vlucas/encryption.js
Stronger Encryption and Decryption in Node.js
'use strict';
const crypto = require('crypto');
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bytes (32 characters)
const IV_LENGTH = 16; // For AES, this is always 16
function encrypt(text) {
let iv = crypto.randomBytes(IV_LENGTH);
let cipher = crypto.createCipheriv('aes-256-cbc', new Buffer(ENCRYPTION_KEY), iv);
@nardhar
nardhar / userChrome.css
Created May 8, 2018 21:12
Firefox 58+ Multiple line tabs
/* Firefox type in urlbar about:support */
/* and click in Open Folder at Profile Folder line */
/* Create folder chrome and copy this file there */
/**
All credits for this file go to https://www.reddit.com/r/firefox/comments/726p8u/multirow_tabs_firefox_ignores_mozboxflex/dngb8qf/
*/
.tabbrowser-tab:not([pinned]) {
flex-grow:1;
min-width:150px;