git log --oneline 7de7970..master
OR
git log --oneline 7de7970..4cb34a9
Above command will give all logs between commit A and commit B including commit A and commit B.
package com.paddypower.financials.market.management.rest.logging; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.net.URI; | |
import java.util.Date; | |
import java.util.Locale; | |
import javax.print.Doc; | |
import javax.print.DocFlavor; | |
import javax.print.DocPrintJob; | |
import javax.print.PrintException; |
Backup: | |
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
Restore: | |
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
git log --oneline 7de7970..master
OR
git log --oneline 7de7970..4cb34a9
Above command will give all logs between commit A and commit B including commit A and commit B.
*.img | |
*.raw |
import org.springframework.http.HttpMethod; | |
import org.springframework.http.codec.ServerCodecConfigurer; | |
import org.springframework.security.authentication.ReactiveAuthenticationManager; | |
import org.springframework.security.web.server.authentication.AuthenticationWebFilter; | |
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatchers; | |
public class LoginWebFilter extends AuthenticationWebFilter { | |
private final ServerCodecConfigurer serverCodecConfigurer; | |
/** |
java -jar /home/expert/work/tools/apktool.jar d net.flixster.android-9.1.3@APK4Fun.com.apk
android:networkSecurityConfig="@xml/network_security_config"
attribute to application
element.<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
#!/usr/bin/ansible-playbook | |
# more api documentation here: | |
# https://ubntwiki.com/products/software/unifi-controller/api | |
--- | |
- name: test unifi api | |
hosts: localhost | |
gather_facts: no | |
vars: | |
unifi_user: SVC_ACCT_USERNAME |
### Basic ### | |
# The directory to store the downloaded file. | |
dir=${HOME}/Downloads | |
# Downloads the URIs listed in FILE. | |
input-file=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to FILE on exit. | |
save-session=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
save-session-interval=60 | |
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |