This file contains hidden or 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
| #!/bin/bash | |
| source /home/project/myenv/bin/activate | |
| cd /home/project/server | |
| PID=$(ps aux | grep 'uvicorn myapp:app' | grep -v grep | awk {'print $2'} | xargs) | |
| if [ "$PID" != "" ] | |
| then | |
| kill -9 $PID | |
| sleep 2 | |
| echo "" > nohup.out | |
| echo "Restarting FastAPI server" |
This file contains hidden or 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
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
This file contains hidden or 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
| package com.nokia.nls.nmif; | |
| import io.netty.bootstrap.Bootstrap; | |
| import io.netty.buffer.ByteBuf; | |
| import io.netty.channel.Channel; | |
| import io.netty.channel.ChannelFuture; | |
| import io.netty.channel.ChannelFutureListener; | |
| import io.netty.channel.ChannelHandler; | |
| import io.netty.channel.ChannelHandlerContext; | |
| import io.netty.channel.ChannelInboundHandlerAdapter; |
This file contains hidden or 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
| GreenAreaListener.OnGreenListener event = new GreenAreaListener.OnGreenListener() { | |
| @Override | |
| public void onResponse(boolean result, int code) { | |
| if (result) { | |
| CommonBank.isRooted = 1; | |
| } else { | |
| switch (code) { | |
| case GreenAreaListener.SUCCESS: | |
| case GreenAreaListener.SUCCESS_PROFILE_MATCH: | |
| case GreenAreaListener.SUCCESS_HAS_TAMPER_NOT_ROOT: { |