Skip to content

Instantly share code, notes, and snippets.

@raiym
raiym / cocoon.patch
Created February 1, 2026 02:22
cocoon.patch
diff --git a/runners/client/ClientRunner.cpp b/runners/client/ClientRunner.cpp
index f39442e..a19779a 100644
--- a/runners/client/ClientRunner.cpp
+++ b/runners/client/ClientRunner.cpp
@@ -93,7 +93,7 @@ void ClientRunner::run_get_models_request(
jb.stop_object();
auto res = jb.as_cslice().str();
- http_send_static_answer(std::move(res), std::move(promise));
+ http_send_static_answer(std::move(res), std::move(promise), "application/json");

Permissions Table (mnt Smart)

Name type:web type:privileged type:certified
geolocation ! ! !
geolocation-noprompt
mmi-test
camera !
alarms
tcp-socket
udp-socket
@raiym
raiym / Ubuntu.sh
Last active January 22, 2020 05:58
Build libwesocket library statically for Ubuntu 18.04
#!/bin/bash
apt install wget
apt install gcc
apt install make
apt install cmake
WORKDIR=$(pwd .)
export WORKDIR
<?php
error_reporting(-1);
require_once 'vendor/autoload.php';
require_once 'src/InstagramScraper.php';
use InstagramScraper\Exception\InstagramException;
use InstagramScraper\Instagram;
try {
$medias = Instagram::getMedias('kevin', 1497);
@raiym
raiym / DeviceAdminInteractor.java
Last active February 21, 2023 07:54
Activate KNOX Standard SDK Demo
public class DeviceAdminInteractor {
private static final String LOG_TAG = DeviceAdminInteractor.class.getName();
// Can be dev and production key
private static final String ELM_LICENSE_KEY
= "SECRETKEY";
public ComponentName componentName;
private DevicePolicyManager devicePolicyManager;
/**
* Samsung KNOX Standard SDK related variables