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
| let fileName = "{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}.xpi"; | |
| // Copy new add-on file from sdcard to profile extensions directory | |
| let newFile = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsILocalFile); | |
| newFile.initWithPath("/sdcard/" + fileName); | |
| let extDir = FileUtils.getFile("ProfD", ["extensions"]); | |
| newFile.copyTo(extDir, fileName); | |
| console.log("moved file from sdcard to extensions directory"); |
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
| /* | |
| * This is a JavaScript Scratchpad. | |
| * | |
| * Enter some JavaScript, then Right Click or choose from the Execute Menu: | |
| * 1. Run to evaluate the selected text (Cmd-R), | |
| * 2. Inspect to bring up an Object Inspector on the result (Cmd-I), or, | |
| * 3. Display to insert the result in a comment after the selection. (Cmd-L) | |
| */ | |
| function addFakeLogins(window) { |
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
| echo -n `cat file.png` | base64 > output.txt | |
| openssl base64 < file.png | tr -d '\n' > output.txt | |
| cat file.png | openssl base64 | tr -d '\n' > output.txt | |
| openssl base64 -in file.png -out output.txt |
OlderNewer