Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
Use Python to:
| [PHP] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) |
| server { | |
| listen 80 default_server; | |
| server_name pasti.id; | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| location ~ ^/(css|js)/ { | |
| expires max; |
| class Clock { | |
| currentPosition(code) { | |
| // Split the code to array of char | |
| const codes = code.split('') | |
| // Initiate some variables | |
| let isMove = false, | |
| position = 60, | |
| currentCode = ''; |
| class Brankas { | |
| unlock(key) { | |
| const keys = key.split('') | |
| let turned = 0, | |
| lastPosition = 0, | |
| isForward = true; | |
| for (let i in keys) { | |
| // Key less than last position and is forward, turnaround backward | |
| // Or key greater than last position and is turnaround before, turned again forward |
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| // Our Test | |
| args := "1 1 0 0 2 1" |
| Solved: | |
| 1. Login to redis client | |
| 2. Execute config set stop-writes-on-bgsave-error no | |
| 3. Execute FLUSHALL (Delete all keys from all Redis databases) | |
| 4. Execute config set stop-writes-on-bgsave-error yes |
| export const getDateFromTimeStamp = (timestamp) => { | |
| return date.format(new Date(timestamp), 'ddd, DD MMMM YYYY', { locale: dateLocaleId }) | |
| } |