Thanks to antville.org
Tuesday, 14. January 2020
14 days ago

This is the python way of calculating the date that is 14 days ago.

import datetime
(datetime.datetime.now() - datetime.timedelta(days = 14)).date()

And this is pandas way of getting the same results:

import pandas as pd
(pd.datetime.today() - pd.offsets.Day(14)).floor('D')

... Link (3 comments) ... Comment


Thursday, 26. December 2019
docker on ARM

Here are 5 commands to run docker on ARM processors:

sudo apt-get update
sudo apt-get upgrade
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -aG docker $USER
sudo docker run --rm -it -p 80:80 jasonrandrews/php-example

... Link (4 comments) ... Comment


Tuesday, 24. December 2019
Cloudmapper using docker

A docker wrapper for the Cloudmapper application, used for visualizing AWS infrastructure.

git clone github.com
cd docker-cloudmapper
Edit .env file and add your AWS key, secret, region, and account name.
docker-compose build (go get a cup of coffee)
docker-compose up -d

Go to localhost:8000 and enjoy!

... Link (5 comments) ... Comment


Wednesday, 16. October 2019
Weekly Email Notification

enable Weekly Email Notification from the Trusted Advisor.

1) Open the AWS Management Console.
2) Go to the Trusted Advisor service.
3) Select Preferences from the sub-navigation.
4) Enable weekly email notifications.

... Link (15 comments) ... Comment


Thursday, 3. October 2019
Change default head rows from 5 to 3

from functools import partialmethod
pd.DataFrame.head = partialmethod(pd.DataFrame.head, n=3)

... Link (9 comments) ... Comment


Friday, 20. September 2019
Install java within conda container

apt-get update && apt-get upgrade
mkdir -p /usr/share/man/man1
apt-get install default-jdk
apt install openjdk-11-jdk

... Link (12 comments) ... Comment


Tuesday, 10. September 2019
Use SNS topic to send marbot alarms by email
  1. Open the AWS SNS Management Console
  2. Create and select a SNS topic
  3. Click on Actions > Subscribe to Topic

  4. Choose HTTPS as the protocol and set the endpint to:
    api.marbot.io

  5. Configure your CloudWatch Alarms to send notifications to the SNS topic.

... Link (42 comments) ... Comment


Managing EBS volumes

lsblk prints all block devices in a tree-like format.

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdf 202:80 0 90G 0 disk

If file command on the disk identifier "xvdf" shows simply "data", then there is no file system on the device and you need to create one.

file -s /dev/xvdf
/dev/xvdf: data

... Link (11 comments) ... Comment


Wednesday, 28. August 2019
download food 11 dataset

The total file size of the Food-5K dataset is about 1.16 GB. Here are steps to download food 11 dataset.

mmspg.epfl.ch

Use these commands at linux prompt:

ftp
open tremplin.epfl.ch
FoodImage@grebvm2.epfl.ch
Cahc1moo
get Food-11.zip

... Link (7 comments) ... Comment


Wednesday, 7. August 2019
Remove old backup files

Cron entry to remove all files in /home/ folder that starts with 'bk_all_dbProdSlave' and not created in the last 2 days.

59 22 find /home/ -name bkall_dbProdSlave\ -mtime +2 -exec rm -f {} \;

Similar as above to remove compressed files:

find /home -type f ( -name ".sql.gz" -o -name ".tar.gz" -mtime +10 ) -exec rm -rf {} \;

... Link (25 comments) ... Comment


Online for 6358 days
Last modified: 1/20/20 9:26 PM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
January 2020
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728293031
December
Recent updates
Fencing in Guildford thanks for
the information Fencing in Guildford Fencing in Surrey
by Dubs (1/20/20 9:26 PM)
satta matka matka boss satta
matka Visit our site for more information
by sattamatka3.net (1/20/20 7:52 PM)
Beebeetravvel Thanks for sharing your
valuable information. we are a tour & travel agency with...
by coolexusa (1/20/20 2:27 PM)
Access Control System Dubai Fingerprintdubai
Company is providing many types of Services like , card...
by coolexusa (1/20/20 12:19 PM)
Air Duct Cleaning This type
of Duct cleaning Miami is absolutely not a must have...
by coolexusa (1/20/20 11:26 AM)
Carpet Cleaning Oxford and Surrounding
Areas Interesting read. Carpet cleaning in Oxford and surrounding areas
by Murray Whelehan (1/19/20 8:18 PM)
Antares AutoTune Crack License
Key With Keygen ( MAC ) A Antares AutoTune Pro Crack...
by ijicrackgh (1/19/20 9:50 AM)
Waves Tune Real-Time Crack (Latest)
Free Download 2020! Visit my site and free crack full...
by ijicrackgh (1/19/20 9:45 AM)
Advanced SystemCare Registry Repair And
Cleaner If you are like many people, you have shut...
by GeraldRob (1/19/20 6:42 AM)
Shell Command One of the
best articles I have ever read. Thank you for sharing...
by Harrison William (1/19/20 1:11 AM)
Hola buenas thank
you for sharing information, i like your blog creditos rapidos con asnef
by polcelery (1/19/20 12:25 AM)
Is it Worth Investing in
an Asbestos Survey? If you suspect that asbestos is present...
by GeraldRob (1/18/20 6:52 PM)
Spyhunte 5 Full Version Spyhunter
is best antivirus pogrom software which enable to remove virus...
by zcracked (1/18/20 9:41 AM)
Wildlife Safari Tours We specialize
in all aspects of African safaris including Wildlife safaris, Family...
by Alexj (1/17/20 7:26 AM)
Great When you create a
CloudWatch alarm, kitchen renovation expert in auckland you can add...
by Silver Reyes (1/16/20 6:01 PM)
my lesson form the article
yes, anything good can able to make your life so...
by adilahbisar90 (1/16/20 9:27 AM)
Landscape Edmonton Great Post!! Thanks
for sharing this it's really helping me out. To know...
by Envision Landscaping (1/16/20 8:14 AM)
Canada Visa Application In Singapore
– IVC Services Applying for Canada Visa? Looking for a...
by Jaxon peter (1/16/20 7:18 AM)
Book translation Agency Russian isn't
a language for beginners. It is a complex language that...
by Premium Quality Translati (1/15/20 8:37 AM)
Best Hotels & Resorts in
Wayanad, Kerala | White Mushroom Hotels Budget hotel in Wayanad,...
by wayanad123 (1/15/20 7:02 AM)
Awesome! Thank you for this
article! This has really helped me out with a pretty...
by jerrykimball (1/14/20 10:51 PM)
14 days ago This is
the python way of calculating the date that is 14...
by shantanuo (1/14/20 4:26 PM)
Admoveomarketing thanks for sharing your
impressive information with public. thanks again Meet with our expert...
by Alexj (1/14/20 11:00 AM)
Rows Thanks for this.
I needed to change the head rows. R22 Alternatives
by dennisd21754 (1/13/20 2:33 PM)
Mr. Q’S Magic Booth Great
Post!! Thanks for the Information. Mr Q’s Magic Photo Booth...
by Mr. Q’S Magic Booth (1/13/20 2:24 PM)

RSS feed

Made with Antville
Helma Object Publisher