add swapspace file on ubuntu.】的更多相关文章

https://askubuntu.com/questions/566745/allocate-swap-after-ubuntu-14-04-lts-installation ---------------------------------------------- 40down voteaccepted First, to create 4,000 MB of swap space: $ sudo dd if=/dev/zero of=/swapspace bs=1M count=4000…
Introduction One of the easiest way of increasing the responsiveness of your server and guarding against out-of-memory errors in applications is to add some swap space. In this guide, we will cover how to add a swap file to an Ubuntu 16.04 server. Wa…
public void UploadDocument(string siteURL, string documentListName, string documentListURL, string documentName, byte[] documentStream) { using (ClientContext clientContext = new ClientContext(siteURL)) { //Get Document List List documentsList = clie…
if you have a .deb file: You can install it using sudo dpkg -i /path/to/deb/file followed by sudo apt-get install -f.…
private void AddFileToDocumentLibrary(string documentLibraryUrl, string filename, byte[] file_bytes, string itemTitleText) { SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(documentLibraryUrl)) { using (SPWeb web = s…
By default, -l option will search libraries with lib* prefix in speficied search paths. i.e. 1 ld -o a.out -lA cppmain.o will search libA.so/libA.a in all library search paths. but it is possbile to set library by using a path & any filename(without…
http://www.howtogeek.com/189819/how-to-add-a-taskbar-to-the-desktop-in-ubuntu-14.04/ sudo apt-get install tint2…
https://stackoverflow.com/questions/12239764/how-can-i-add-files-to-a-jar-file M.java class M{ public static void main(String args[]){ System.out.println("Hello, world!"); } } MANIFEST.MF Manifest-Version: 1.0 Created-By: 1.8.0_144 (Oracle Corpo…
eg. add sublime text to launcher so as to be found by launcher, docky, etc. add a file sudo gedit /usr/share/applications/sublime.desktop set content as follows: [Desktop Entry] Name=SublimeText Type=Application Exec=/opt/SublimeText2/sublime_text Te…
We added a system call to modify idt table, then programed it in modify_idt.c 1. Put our modify_idt.c file in /usr/src/linux-3.10.15/arch/x86/kernel 2. /usr/src/linux-3.10.15/arch/x86/syscalls# vim syscall_64.tbl add a new line 314 64 modify_idt sys_…