Relative positioned, border-based CSS arrows generated by a LESS mixin. Parameters: size, stroke, color, hover-color and radius.
A Pen by Peter Varga on CodePen.
#!/bin/bash | |
# Split JSON array to files, use json attribute as filename | |
# | |
# input.json: | |
# [ | |
# {"id":"1", "name":"first"}, | |
# {"id":"1", "name":"second"}, | |
# ... | |
# ] |
#!/bin/sh | |
URL=https://github.com/vchain-us/vcn/releases/download/v0.7.2/vcn-v0.7.2-darwin-10.6-amd64 | |
echo "Please wait. We are downloading and installing CodeNotary vcn for you..." | |
cd ~ | |
curl --connect-timeout 100 -L $URL >> vcn | |
chmod 777 vcn | |
mv vcn /usr/local/bin/ | |
echo "Done. You can run now: $ vcn" |
#Skip from tracking | |
git update-index --skip-worktree <file> | |
#Get back to tracking | |
git update-index --no-skip-worktree <file> |
# biggest files | |
du --max-depth=5 /* | sort -n |
This is my Jekyll-based Curriculum vitae 'generator' |
#!/usr/bin/env ruby | |
# | |
# Convert PyroCMS blog posts to jekyll posts | |
# | |
# Basic Usage | |
# ----------- | |
# | |
# ruby ./import_pyro_to_jekyll.rb feed_url | |
# | |
# where `feed_url` can have the following format: |
Relative positioned, border-based CSS arrows generated by a LESS mixin. Parameters: size, stroke, color, hover-color and radius.
A Pen by Peter Varga on CodePen.
// UMD dance - https://github.com/umdjs/umd | |
!function(root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['jquery'], factory); | |
} else { | |
factory(root.jQuery); | |
} | |
}(this, function($) { | |
'use strict'; |
#MYSQL DB DUMP FROM REMOTE SERVER | |
mysqldump -h host_ip -u username -p --databases xxx_db > xxx.sql | |
#MYSQL DB DUMP RESTORE TO REMOTE SERVER | |
mysql -h host_ip -u username -p xxx_db < xxx.sql | |
#MySQL TIMESTAMP TO DATE Update | |
UPDATE table SET col_to=DATE_FORMAT(FROM_UNIXTIME(col_from),"%Y-%m-%d %H:%i:%s"); | |
#MYSQL UPDATE "ME" |
#a# | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |