deluge tlp psensor intel-microcode alsamixer pavucontrol gnome-tweaks dconf-editor grub-customizer pixel-saver powertop
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
function decode(imageString){ | |
var image = new Image(); | |
image.src = `data:image/png;base64,${imageString}`; | |
document.body.replaceWith(image); | |
} |
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
# Connect device over USB | |
# Get device IP | |
adb shell ip -f inet addr show wlan0 | |
# Define port | |
adb tcpip 5555 | |
# Connect | |
adb connect {device ip}:5555 | |
# Disconnect USB |
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
#!/bin/bash | |
user=$(id -un) | |
rm -rf ProjectName.xcframework && \ | |
xcodebuild archive \ | |
-workspace ProjectName.xcworkspace \ | |
-scheme ProjectName \ | |
-destination "generic/platform=iOS" \ | |
-archivePath "archives/ios" \ | |
SKIP_INSTALL=NO \ | |
SWIFT_SERIALIZE_DEBUGGING_OPTIONS=NO \ |
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
private Camera.Size calBestPreviewSize(Camera.Parameters camPara, | |
final int width, final int height) { | |
List<Camera.Size> allSupportedSize = camPara.getSupportedPreviewSizes(); | |
ArrayList<Camera.Size> widthLargerSize = new ArrayList<Camera.Size>(); | |
for (Camera.Size tmpSize : allSupportedSize) { | |
if (tmpSize.width > tmpSize.height) { | |
widthLargerSize.add(tmpSize); | |
} | |
} |
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
public Matrix calculateTextureMatrix(TextureView textureView, View previewView) { | |
Matrix matrix = new Matrix(); | |
Camera.Size previewSize = mICamera.mCamera.getParameters().getPreviewSize(); | |
float actualPreviewWidth = previewSize.width; | |
float actualPreviewHeight = previewSize.height; | |
float previewWidth = previewView.getWidth(); | |
float previewHeight = previewView.getHeight(); | |
int deviceAndCameraAngleDiff = mICamera.getCameraAngle(this); |
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
import * as React from 'react' | |
import { Image, StatusBar, StyleSheet, useWindowDimensions } from 'react-native' | |
import { | |
PanGestureHandler, | |
PinchGestureHandler, | |
PinchGestureHandlerGestureEvent, | |
TapGestureHandler, | |
TapGestureHandlerGestureEvent, | |
} from 'react-native-gesture-handler' | |
import Animated, { |
OlderNewer