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
### Step-by-Step Guide | |
1. **Check for Active Connections:** | |
- Use `nmcli` to list active connections and identify the correct connection name: | |
```bash | |
nmcli connection show | |
``` | |
2. **Edit the Connection Profile via nmcli:** |
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
const fs = require('fs'); | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
// Function to read the image file as a buffer | |
const readImageFile = (filePath) => { | |
return new Promise((resolve, reject) => { | |
fs.readFile(filePath, (err, data) => { | |
if (err) { | |
reject(err); |
Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:
"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"
You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.
Yet your problems persist…
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 sys | |
import clang.cindex | |
clang.cindex.Config.set_library_path(r'C:\Program Files\LLVM\bin') | |
def visit(cursor, indent): | |
print("%s[KIND:%s] { extent: { File:%s, start:{ l:%d, c:%d }, end {l:%d, c:%d } } , spelling:%s, type:{ kind:%s, spelling:%s } }" % ( | |
' ' * indent, | |
cursor.kind.name, | |
cursor.extent.start.file, |
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
// Generates the SAPISIDHASH token Google uses in the Authorization header of some API requests | |
async function getSApiSidHash(SAPISID, origin) { | |
function sha1(str) { | |
return window.crypto.subtle.digest("SHA-1", new TextEncoder("utf-8").encode(str)).then(buf => { | |
return Array.prototype.map.call(new Uint8Array(buf), x=>(('00'+x.toString(16)).slice(-2))).join(''); | |
}); | |
} | |
const TIMESTAMP_MS = Date.now(); | |
const digest = await sha1(`${TIMESTAMP_MS} ${SAPISID} ${origin}`); |
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
#include <map> | |
#include <functional> | |
// waitActions に登録する例は載せていない(通常は、排他制御して追加処理するのが良い) | |
std::map<HANDLE, std::function<bool(bool,bool&)>> waitActions; | |
DWORD APIENTRY SetupWaitHandles( HANDLE* waitHandles, DWORD capacityCount ) | |
{ | |
DWORD waitCount = 0; | |
if( capacityCount > 0 ) | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<!-- IKEv2 IPSec VPN profile for Apple devices, Pre-Shared Key(PSK), no username password. | |
References: | |
https://wiki.strongswan.org/projects/strongswan/wiki/AppleIKEv2Profile | |
https://developer.apple.com/library/mac/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html | |
https://help.apple.com/configurator | |
The extension of this file should be .mobileconfig --> |
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
アンロック前のバックアップ | |
Flashtool 0.9.25.0で34.1.B.0.336を焼く | |
TA領域をBackupTA_v2で取得 | |
BLU準備 | |
qUnlock Toolsでアンロック | |
サービスメニューのConfigurationで値の確認 | |
「Bootloader unlock allowed: Yes」 | |
この状態のTA領域をBackupTA_v2で取得 |
NewerOlder