Reference:
sudo fdisk -l
Reference:
sudo fdisk -l
import UIKit | |
import SwiftUI | |
// SwiftUI | |
struct SomeView: View { | |
var body: some View { | |
Text("Hello World!") | |
} | |
} |
Code name: lancelot | |
MIUI version: MIUI Global 11.0.8 Stable 11.0.8.0 (QJCMIXM) | |
Android version: 10 QP1A.190711.020 | |
Model: M2004J19G | |
Kernel version: 4.14.141-perf-g54df45d | |
note: do not update your phone yet (do not connect to wifi, disable mobile data) | |
if you can't access usb debugging (even if you already enabled it on developer options), |
// ==UserScript== | |
// @name Replaces the X logo with the old Twitter logo | |
// @description Replaces the X logo with the old Twitter logo by Biast12 | |
// @icon https://abs.twimg.com/favicons/twitter.ico | |
// @version 1.0.6 | |
// @author Biast12 | |
// @namespace https://twitter.com/Biast12 | |
// @homepageURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286 | |
// @supportURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286 | |
// @updateURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286/raw/Replace-twitter-logo.user.js |
Copyright by Code Boxx
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights
DSLKDS |
var MAX_PRECISION = 28; | |
function _findExp (n, base, exp = 1) { | |
var pow = Math.pow(base, exp); | |
var div = Math.floor(n / pow); | |
if (exp > MAX_PRECISION) { | |
return div; | |
} | |
return div + _findExp(n, base, exp + 1); | |
} |
// IPv6 demo of inet_ntop() and inet_pton() | |
// (basically the same except with a bunch of 6s thrown around) | |
struct sockaddr_in6 sa; | |
char str[INET6_ADDRSTRLEN]; | |
// store this IP address in sa: | |
inet_pton(AF_INET6, "2001:db8:8714:3a90::12", &(sa.sin6_addr)); | |
// now get it back and print it |