Thanks to antville.org |
... Previous page
Saturday, 11. April 2020
Standard out to a file
shantanuo
11:18h
This code will change the standard out to a file so that jupyter notebook cell's responses are saved to a file. import sys ... Link (0 comments) ... Comment Thursday, 20. February 2020
Create config file for AWS command line tool
shantanuo
06:00h
While creating amazon config file in a shell script, use cat with heredoc like this.. cat > myconfigfile.txt << "heredoc" export AWS_CONFIG_FILE=./myconfigfile.txt ... Link (0 comments) ... Comment
setting colors in pandas
shantanuo
05:53h
This is how to set the colors in pandas mapper = {v: k for k, v in enumerate(colors.unique())} ccolors.cat.reorder_categories(mapper).cat.codes ... Link (0 comments) ... Comment Wednesday, 19. February 2020
log mysql output
shantanuo
10:33h
tee output.txt ... Link (0 comments) ... Comment Sunday, 16. February 2020
access AWS API gateway using python
shantanuo
09:41h
Amazon API gateway allows us to host serverless API's those can talk to cloud or on-premises databases. Here is 5 lines of python code to use the API from urllib.request import Request, urlopen url='https://xxx.execute-api.ap-south-1.amazonaws.com/stag' ... Link (0 comments) ... Comment Saturday, 15. February 2020
Using boto
shantanuo
10:28h
In the bad old days, the glacier class used to have different layers. import boto.glacier.layer2 Now the client is all you need! import boto3 ... Link (0 comments) ... Comment Thursday, 13. February 2020
backup mysql users
shantanuo
13:49h
3 steps to install percona utility... yum install perl-DBI perl-Data-Dumper perl-DBD-MySQL wget percona.com/get/pt-show-grants perl pt-show-grants -h 1.2.3.4 -uroot -pPasswd ... Link (0 comments) ... Comment
Steps to be used for generating AWS API gateway
shantanuo
13:30h
a) Method Execution - Get Method Request - URL Query String Parameters - add a variable: cmnumber b) Method Execution - Get Integration Request - Mapping Templates - Content-Type - application/json - Mapping template {"mnumber": "$input.params('cmnumber')"} "requestTemplates": { ... Link (0 comments) ... Comment Wednesday, 12. February 2020
apply colors to pandas
shantanuo
08:57h
Here is how to change the color of negative values to red in pandas. def color_negative_red(val): df = df.style.applymap(color_negative_red) ... Link (0 comments) ... Comment Tuesday, 11. February 2020
change log file size in MySQL
shantanuo
10:38h
Here are the steps to be followed while changing the log file size in mysql: 1) SET GLOBAL innodb_fast_shutdwn = 1; ... Link (0 comments) ... Comment ... Next page
|
Online for 7297 days
Last modified: 7/16/22, 4:46 AM Status
Youre not logged in ... Login
Menu
Search
Calendar
Recent updates
Card issuing banks CITI
Standard Chartered HSBC American Express HDFC ICICI AXIS INDUS IND Kotak...
by shantanuo (7/16/22, 4:46 AM)
Activate IAM Access To activate
the Activate IAM Access setting, you must log in to...
by shantanuo (7/12/22, 5:52 AM)
use cheat instead of man
wget https://github.com/cheat/cheat/releases/download/4.2.3/cheat-linux-arm64.gz gunzip cheat-linux-arm64.gz chmod 770 cheat-linux-arm64 ./cheat-linux-arm64 mv cheat-linux-arm64...
by shantanuo (7/4/22, 8:53 AM)
python module itertools list of
useful methods of itertools module. permutations combinations combinations_with_replacement zip_longest count...
by shantanuo (9/8/21, 7:50 AM)
wikipedia tools 1) Collection of
useful utilities https://wikipediatools.appspot.com/ 2) all history of a user https://xtools.wmflabs.org/ec/mr.wikisource.org/Shantanuo...
by shantanuo (8/20/21, 6:36 AM)
Duration/Term of Copyright In the
case of original literary, dramatic, musical and artistic works, the...
by shantanuo (8/20/21, 6:26 AM)
Preserve seeds 6 types of
seeds to be preserved for next season. 1) laal Mula...
by shantanuo (5/7/21, 5:46 AM)
Why do I care for
Linux? I don't care that much for other software. Linux...
by shantanuo (12/17/20, 9:27 AM)
important leafy vegetables 1. Amaranthus
caudatus: rajgira. 2. Amaranthus tricolor: Math. (Chhoti Chulai- Hindi, Cheera-...
by shantanuo (4/12/20, 2:01 PM)
program creek program creek
seems to be a good site for handy references of python...
by shantanuo (4/11/20, 11:24 AM)
Standard out to a file
This code will change the standard out to a file...
by shantanuo (4/11/20, 11:18 AM)
Create config file for AWS
command line tool While creating amazon config file in a...
by shantanuo (2/20/20, 6:00 AM)
setting colors in pandas This
is how to set the colors in pandas mapper =...
by shantanuo (2/20/20, 5:53 AM)
log mysql output tee output.txt
show global variables; show engine innodb status\G show full processlist;...
by shantanuo (2/19/20, 10:33 AM)
access AWS API gateway using
python Amazon API gateway allows us to host serverless API's...
by shantanuo (2/16/20, 9:41 AM)
Using boto In the bad
old days, the glacier class used to have different layers....
by shantanuo (2/15/20, 10:28 AM)
backup mysql users 3
steps to install percona utility... yum install perl-DBI perl-Data-Dumper perl-DBD-MySQL wget...
by shantanuo (2/13/20, 1:49 PM)
Steps to be used for
generating AWS API gateway a) Method Execution - Get Method...
by shantanuo (2/13/20, 1:30 PM)
apply colors to pandas Here
is how to change the color of negative values to...
by shantanuo (2/12/20, 8:57 AM)
Holidays in India These are
the common holidays celebrated in India (Mumbai) during 2016 -...
by shantanuo (2/11/20, 1:53 PM)
change log file size in
MySQL Here are the steps to be followed while changing...
by shantanuo (2/11/20, 10:38 AM)
MySQL common error messages 1146
Table does not exist 1054 column does not exist 1062...
by shantanuo (2/11/20, 10:13 AM)
ipython parallel demo First start
ipython in cluster mode ipcluster start -n 4 from IPython.parallel...
by shantanuo (2/9/20, 9:02 AM)
djanog settings You may see
this message if you have DEBUG = True in your...
by shantanuo (2/9/20, 4:07 AM)
clear tmp folder Here is
following commands to clear unwanted stuff from the /tmp partition...
by shantanuo (2/8/20, 2:41 PM)
|