• Linux modify user expiration time


    What is the chage command? Chage stands for change age. It changes the user password expiration information. The chage command can modify the number of days between two password changes, as well as the date of the last password change. The system uses this information to determine when the user should change the password. It […]

  • Java calculates two time differences (localdatetime)


    Object introduction Object desc format LocalDateTime Date time yyyy-MM-dd’T’HH:mm:ss LocalDate date yyyy-MM-dd LocalTime time HH:mm:ss Get object instance Function Desc now Get the current time of Gets the specified time judgePrefix is Suffix desc after Whether after passing in the object before Before passing in the object equal equal supported Check for support(Field support, Unit […]

  • Python stunts Chapter 1 Introduction to password cracking with Python 3


    preface To me, the extraordinary thing about Wushu is its simplicity. The simple method is also the right one. At the same time, there is nothing special about Wushu. The closer to the essence of martial arts, the less waste on the performance of moves brief introduction Python’s unique skillsThe first chapter ispythonEntry syntax, the […]

  • Time judge current time set VIP by month


    function nextDay($date,$month){ //1 get today’s time $date time $date_ Today’s date $date_day =date(‘d’, strtotime($date)); //2 get the time after n months $lastday = strtotime(“$date +$month months”); $last_day =date(‘d’,$lastday); $day_benlastday = date(‘Y-m-d’, $lastday); $day_t=date(‘Y-m-t’,strtotime(“$day_benlastday -1 month”)); $day_benlast_day= date(‘t’,strtotime($day_t)); //Get the date of the day $Same_day = date(‘d’, strtotime($date)); //Judge whether the number of days after n […]

  • Prints the calendar for the specified year


    Enter the year and print out the calendar of the year: #include void PrintEnter(int mod); void PrintSkip(int lastday); void PrintTitle(int year,int month); int JudgeDays(int year, int month); void PrintMonth(int year, int mod, int lastday); int main() { int year; //The last day of every month int lastday = 1; Printf (“please enter year”); scanf(“%d”,&year); //What […]

  • Oracle-awr Report


    1: Log in to the corresponding database server and use Su – Oracle to switch to Oracle user (if the current login user is Oracle user, omit this step)2: Find Oracle disk space (/ u01 / APP / Oracle / product / 12.2.0 / dbhome)_ 1/rdbms/admin)3: cd /u01/app/oracle/product/12.2.0/dbhome_ 1 / RDBMS / Admin enter4: Sqlplus user […]

  • Daily temperature


    Title Requirements: thinking Initialize a res to store the returned results. The length of res is the length of the given array of T, and each element of res is 0 Define an array stack to store the subscripts of the T array Traverse the given array T and use enumerate to traverse the index […]

  • Post calculation script of SQL


    In most cases, we can complete the database calculation with SQL (stored procedure), but if we encounter some complex operations that SQL is not good at, we can only read the data out of the database with other programming languages, and then complete the calculation outside the database. Such programming languages often appear in the […]

  • Calculation script for time series data


    Time series data here refers to the daily business data sorted by time. When calculating time series data, it not only involves regular calculation such as quarter, month, weekday and weekend, but also often encounters more complex orderly calculation, which requires the script language to have the corresponding computing ability. Generally, the calculation scripts used […]

  • Go carbon version 1.2.0 has been released to improve and optimize the multi scenario support for orm


    Carbon is a lightweight, semantic and developer friendly golang time processing library, which supports chain call, lunar calendar, Gorm, xorm and other mainstream orm If you think it’s good, please give it to a star github:github.com/golang-module/carbon gitee:gitee.com/go-package/carbon Installation and use //Using GitHub Library go get -u github.com/golang-module/carbon import ( “github.com/golang-module/carbon”) //Using gitee Library go get […]

  • JS function encapsulation to achieve a countdown effect


    1: The core algorithm is the input event – the remaining time, which is the countdown Total number of milliseconds entered – the total number of milliseconds of the current time. The remaining number of milliseconds is the countdown time 2: Turn the remaining milliseconds into days, hours, minutes and seconds   function getTime(time){ Var […]