Skip to content

Instantly share code, notes, and snippets.

...
@Override
protected void onResume() {
...
// Resources.getSystem().getConfiguration().locale.toString() (Language. Flag in local storage)
...
Intent intent = new Intent(getBaseContext(), MapsActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION);
getBaseContext().startActivity(intent);
Runtime.getRuntime().exit(0);
manifest.json
...
"content_scripts": [
{
"matches": ["*://*/*"],
"js": [
"inject.js"
]
}
],
manifest.json
...
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
...
background.js
...
// icon 16x16
inject.js
...
window.onload = function() {
...
var request = {
'action_name': 'share_found',
'url': '<url>' // link search
}
eg:
download openssl-1.0.2a
emmake bash
./Configure no-asm no-apps no-ssl2 no-ssl3 no-comp no-hw no-engine no-deprecated no-dso --openssldir=built linux-generic64
make -j 4
download openssl-1.0.2p
emmake bash
./Configure no-asm no-apps no-ssl2 no-ssl3 no-comp no-hw no-engine no-deprecated no-dso --openssldir=built linux-generic64
make -j 4
...
if (EMSCRIPTEN)
...
set(OPENSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/crypto/openssl)
set(OPENSSL_INCLUDE_DIR "${OPENSSL_ROOT_DIR}/include")
set(OPENSSL_CRYPTO_LIBRARY "${OPENSSL_ROOT_DIR}/lib/libcrypto.a")
set(OPENSSL_SSL_LIBRARY "${OPENSSL_ROOT_DIR}/lib/libssl.a")
set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
...
...
val startMain = Intent(Intent.ACTION_MAIN)
startMain.addCategory(Intent.CATEGORY_HOME)
startMain.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivity(startMain)
...
[ 3][t 4][1561985602.845554113][Td.cpp:4380][#1][!Td][&td_requests] Sending update: updateOption {
name = "version"
value = optionValueString {
value = "1.4.0"
}
}
[ 3][t 4][1561985602.846087217][Td.cpp:4380][#1][!Td][&td_requests] Sending update: updateAuthorizationState {
authorization_state = authorizationStateWaitTdlibParameters {
}
}
<?php
...
/**
* @ORM\Column(type="datetimetz", unique=false)
*/
private $created_at;
/**
* @ORM\Column(type="datetimetz", unique=false)
*/
private $updated_at;
<?php
use Symfony\Component\HttpFoundation\Session\SessionInterface;
class AppDefaultAuthenticator extends AbstractGuardAuthenticator implements AuthenticatorInterface
{
...
private $session;
...
public function __construct(SessionInterface $session) {