To install rustup in different directory (i.e. /opt):
- install rustup in custom directory pointed to by RUSTUP_HOME envvar:
curl https://sh.rustup.rs -sSf | sudo RUSTUP_HOME=/opt/rustup sh -s -- -y- select default tool chain
To install rustup in different directory (i.e. /opt):
curl https://sh.rustup.rs -sSf | sudo RUSTUP_HOME=/opt/rustup sh -s -- -y| diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi | |
| index f7a47f8..e9cfe7a 100644 | |
| --- a/doc/misc/efaq.texi | |
| +++ b/doc/misc/efaq.texi | |
| @@ -1491,6 +1491,39 @@ exhibits all the colors Emacs knows about on the current display. | |
| Syntax highlighting is on by default since version 22.1. | |
| +Emacs 26.1 and later support direct color mode in terminals. If Emacs | |
| +finds Terminfo capabilities @samp{setb24} and @samp{setf24}, 24-bit |
I hereby claim:
To claim this, I am signing this object:
| sudo kextunload /System/Library/Extensions/AppleHDA.kext | |
| sudo kextload /System/Library/Extensions/AppleHDA.kext | |
| sudo killall -9 coreaudiod | |
| import socket | |
| from BaseHTTPServer import HTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| class MyHandler(SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| if self.path == '/ip': | |
| self.send_response(200) | |
| self.send_header('Content-type', 'text/html') | |
| self.end_headers() |
| public class PkiUtils { | |
| public static final int MinPassPhraseLength = 4; | |
| public static List<?> readPemObjects(InputStream is, final String pphrase) | |
| throws IOException { | |
| List<Object> list = new LinkedList<Object>(); | |
| PEMParser pr2 = new PEMParser(new InputStreamReader(is)); | |
| JcaPEMKeyConverter converter = new JcaPEMKeyConverter().setProvider("BC"); | |
| JcaX509CertificateConverter certconv = new JcaX509CertificateConverter().setProvider("BC"); |
| sudo cp /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd.orig | |
| # make sure replace with equal number of spaces(we're patching executable binary) | |
| sudo perl -pi -e 's#tell application id "com.apple.iTunes" to launch# #g' /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd | |
| # sign new binary | |
| sudo codesign -f -s - /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd | |
| # restart | |
| killall -9 rcd |
| #include <map> | |
| #include <iostream> | |
| using namespace std; | |
| int main(int argc, char *argv[]) { | |
| // map of int -> string | |
| // note that string is not included | |
| map<int, std::string> m; | |
| // assigning integer instead of string | |
| // compiles just fine, sigh... |
| (deftheme mono-light | |
| "Light monochrome theme") | |
| (let ((class '((class color) (min-colors 10))) | |
| (black "#080808") ; black | |
| (white "#fafafa") ; "white" | |
| (lgray "#b3b3b3") | |
| (dgray "#303030") | |
| (sgray "#606060") | |
| (sgray+1 "#707070") |
| fun toStr (xs:int list) = List.foldl (fn (i,s) => Int.toString(i) ^ " " ^ s) "" xs; | |
| (* returns true if all test cases were successful, false otherwise *) | |
| fun test name (results:bool list) : bool = | |
| let fun checkT (t, (failed, total)) = | |
| if t then (failed, total + 1) else ([total+1] @ failed, total + 1) | |
| val (failed, total) = List.foldl checkT ([], 0) results | |
| in case (failed, total) of | |
| (x::xs, t) => (print ("> Failed " ^ name ^ " [" ^ toStr(failed) ^ "] (total " ^ Int.toString(t) ^")\n") ; false) | |
| | (nil, t) => (print ("> Success " ^ name ^ " (total " ^ Int.toString(t) ^")\n"); true) |