This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini ternyata... | |
[Tue Jun 8 06:08:00 2021] ena 0000:00:06.0: ENA device version: 0.10 | |
[Tue Jun 8 06:08:00 2021] ena 0000:00:06.0: ENA controller version: 0.0.1 implementation version 1 | |
[Tue Jun 8 06:08:00 2021] ena 0000:00:06.0: Elastic Network Adapter (ENA) found at mem c0100000, mac addr 0a:4e:87:c9:1f:d7 | |
[Tue Jun 8 06:08:06 2021] ena 0000:00:06.0 eth1: Local page cache is disabled for less than 16 channels | |
[Tue Jun 8 06:08:14 2021] pci 0000:00:07.0: [1d0f:ec20] type 00 class 0x020000 | |
[Tue Jun 8 06:08:14 2021] pci 0000:00:07.0: reg 0x10: [mem 0x00000000-0x00003fff] | |
[Tue Jun 8 06:08:14 2021] pci 0000:00:07.0: reg 0x18: [mem 0x00000000-0x000fffff pref] | |
[Tue Jun 8 06:08:14 2021] pci 0000:00:07.0: enabling Extended Tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rails" | |
%w( | |
active_record/railtie | |
action_controller/railtie | |
action_view/railtie | |
action_mailer/railtie | |
active_job/railtie | |
action_cable/engine | |
rails/test_unit/railtie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# concept stolen from: | |
# https://stackoverflow.com/questions/787496/what-is-the-best-way-to-compute-trending-topics-or-tags | |
def trending(count, past_hour_data, past_24hours_data) | |
candidates = data_freq_above_median(past_hour_data) | |
zcandidates = candidates.inject([]) do |sum, (term, freq)| | |
z = zscore( | |
freq, | |
past_24hours_data | |
.select { |elt| elt[0].eql?(term) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cari kata “forstok” dari sebuah kata: | |
contoh | |
-ffffforrrrrrstookkkk answer YES | |
-forastok answer YES | |
-forlikesvrtyeok answer YES | |
-dhkortfsuhuahjdhsjhdjshs answer NO | |
function forstokString(s) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "User-Agent: Forstok-System" -H "Authorization: Bearer MmxH1sWGSeuqvbtP2N3NRg" -H "Content-type: application/json" "https://fs.tokopedia.net/v1/order/list?fs_id=13025&from_date=1564974483&to_date=1567739283&page=1&per_page=25&shop_id=2512187" -w "@curl-format" -o /dev/null -s | |
\n | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show containers | |
docker ps | |
# Logging to container | |
docker logs -f <container_id> | |
# ssh to container | |
docker exec -it <container_id> /bin/bash | |
# build container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apisentris API endpoints | |
table name: programmers | |
### Get Programmers | |
[GET] https://apisentris.com/api/v1/programmers | |
example: | |
-------- | |
curl -H "client_id: 141000"\ | |
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# url https://partner.staging.shopeemobile.com/api/v1/item/add | |
# headers | |
# { | |
# :"Content-type"=>"application/json", | |
# :Authorization=>"27b2a692fbcd1b4b97824479389b900680b5abb18c5b8a0e20004a6c1158eb99", | |
# :"cache-control"=>"no-cache" | |
# } | |
# | |
# | |
# response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function(d, h, m){ | |
var js, fjs = d.getElementsByTagName(h)[0]; | |
if (d.getElementById(m)){return;} | |
js = d.createElement(h); js.id = m; | |
js.onload = function(){ | |
window.mytimezoneis({ | |
position: "left", // left || right | |
emailhash: "e5507bee9e0bb54a1c5ea5df164c74a1", // your md5 encoded email address | |
})}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profile_id | category_name | |
---|---|---|
68 | Weekly Promo |