ls -F | grep -v / | wc -l
tail -20 bigfile.txt
@import url(https://fonts.googleapis.com/css?family=Hind+Siliguri:300,600|Martel:400,900);@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);/*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*/ | |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;l |
import cv2 | |
import cv2.cv as cv | |
def detect(img, cascade_fn='haarcascades/haarcascade_frontalface_alt.xml', | |
scaleFactor=1.3, minNeighbors=4, minSize=(20, 20), | |
flags=cv.CV_HAAR_SCALE_IMAGE): | |
cascade = cv2.CascadeClassifier(cascade_fn) | |
rects = cascade.detectMultiScale(img, scaleFactor=scaleFactor, |
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; | |
if (!isFirefox) { | |
document.styleSheets[2].addRule("::-webkit-scrollbar-thumb", "background: "+document.getElementsByTagName('meta')['theme-color'].content+';'); | |
} |
// source https://supple.com.au/tools/facebook-messenger-website-chat-widget/# | |
var ot = Array(); | |
ot['mon'] = '9:00 AM-5:00 PM'; | |
ot['tue'] = '9:00 AM-5:00 PM'; | |
ot['wed'] = '9:00 AM-5:00 PM'; | |
ot['thu'] = '9:00 AM-5:00 PM'; | |
ot['fri'] = '9:00 AM-5:00 PM'; | |
ot['sat'] = '9:00 AM-5:00 PM'; | |
ot['sun'] = '9:00 AM-5:00 PM'; | |
var tz = '-04:00,0'; |
<?php | |
namespace cPanel; | |
/************************************************************************************** | |
* Copyright (c) 2013, cPanel, Inc. * | |
* All rights reserved. * | |
* * | |
* Redistribution and use in source and binary forms, with or without modification, * | |
* are permitted provided that the following conditions are met: * | |
* * |
Mover carpeta docker | |
docker ps -q | xargs docker kill | |
stop docker | |
cd /var/lib/docker/devicemapper/mnt | |
umount ./* | |
mv /var/lib/docker $dest | |
ln -s $dest /var/lib/docker | |
start docker |
#!/bin/bash | |
git pull | |
cd laradock | |
docker-compose down | |
docker-compose up -d nginx mysql phpmyadmin |
#!/bin/bash | |
#==INSTRUCTIONS | |
# - Add EMAIL and PASS infomation | |
# - Replace script path with your path `/home/USER/scripts/` in the script | |
# - Check your machine timezone `date +"%Z %z"` output ex: UTC +0000 | |
# - patckpub.com is UTC +0000, find the best hour for you to use in the crontab | |
# - Execute `crontab -e` | |
# - Add `0 1 * * * /bin/sh /home/USER/scripts/packtpub_redeem.sh > /home/USER/scripts/packtpub_redeem.out` , this mean everyday 1am | |
# - Restart Service `sudo service cron reload` (optional, crontab -e, will reload) | |
# - Add Permission `chmod 755 /home/USER/scripts/packtpub_redeem.sh` |
The following guide will show you how to deploy a simple microservice written in JavaScript using π« now.
It uses Open Source tools that are widely available, tested and understood: