Groovy'de
// derleme hatası
<T> void execute(Request<T> request) {
// kodlar
}
tarzı bir metot imzası ayıklama hatasına(parsing error) sebep olur.
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json' | |
siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}' |
Groovy'de
// derleme hatası
<T> void execute(Request<T> request) {
// kodlar
}
tarzı bir metot imzası ayıklama hatasına(parsing error) sebep olur.
/* | |
* Example usage: parseCreditCard('1234567890123456') -> [ '1234', '5678', '9012', '3456' ] | |
*/ | |
function parseCreditCard(cardNumber) { | |
return cardNumber.match(/.{1,4}/g); | |
} |
jar tf my-jar-file.jar
import static org.junit.Assert.*; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.InjectMocks; | |
import org.mockito.Mock; | |
import org.mockito.runners.MockitoJUnitRunner; | |
#parse("File Header.java") | |
#set($lastIndex = $CLASS_NAME.lastIndexOf(".") + 1) | |
#set($onlyClassName = $CLASS_NAME.substring($lastIndex)) |
// Yalnızca UI onayı için kullanılmalıdır | |
// İş önemi olan durumlarda bu api'yi kullanmalısınız: | |
// https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?op=TCKimlikNoDogrula | |
private boolean isTCKNCorrect(String id) { | |
if (id == null) return false; | |
if (id.length() != 11) return false; | |
char[] chars = id.toCharArray(); |
CREATE INDEX CONCURRENTLY {indexName} ON {tableName} ({columnName}); | |
DROP INDEX CONCURRENTLY {indexName}; |
# 1) Download Mac Version to install from App Store | |
# 2) Put a USB stick at least 8 GB | |
# 3) Open Terminal and enter the following command: | |
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume |
-- To be able to use these in full detail, you must have the necesarry role authentication | |
-- Find activity list on DB | |
select * from pg_stat_activity | |
-- Find pid, user name, query, backend start date, transaction start date, query start date and the longest running sql times that are active and idle in transaction | |
SELECT pid, usename, query, backend_start, xact_start, query_start, (now() - query_start) AS run_time FROM pg_stat_activity WHERE state IN ('active', 'idle in transaction') ORDER BY query_start | |
-- Terminate the sql with the given pid | |
SELECT |