Skip to the relevant sections if needed.
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/sysctl.h> | |
#include <inttypes.h> | |
bool device_enabled(char *); | |
char *find_device(void); | |
int get_brightness(char *); |
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
(EE) Backtrace: | |
(EE) 0: /usr/bin/X (xorg_backtrace+0x4e) [0x55ace80e168e] | |
(EE) 1: /usr/bin/X (mieqEnqueue+0x253) [0x55ace80c3373] | |
(EE) 2: /usr/bin/X (QueuePointerEvents+0x52) [0x55ace7f9d152] | |
(EE) 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f8f1747a000+0x60a7) [0x7f8f174800a7] | |
(EE) 4: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f8f1747a000+0x687d) [0x7f8f1748087d] | |
(EE) 5: /usr/bin/X (0x55ace7f2d000+0x96ac8) [0x55ace7fc3ac8] | |
(EE) 6: /usr/bin/X (0x55ace7f2d000+0xbfc92) [0x55ace7fecc92] | |
(EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (0x7f8f20a53000+0x352f0) [0x7f8f20a882f0] | |
(EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (ioctl+0x7) [0x7f8f20b50067] |
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
#!/bin/zsh | |
ws1= # main | |
ws2= # web | |
ws3= # mail | |
ws4= # code | |
ws5= # math [infinity] (term icon) | |
ws6= # media | |
ws7= # misc (9 squares icon) | |
ws8= # notes/docs (pdf icon) |
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
Go to onedrive.com and sign-in with your Microsoft account. While you are logged in, drag a PDF file from the desktop onto the OneDrive website to upload it. | |
After the PDF file is uploaded, double-click to open the PDF file in the Word online app. Remember you are looking at the PDF file and it is not editable yet. | |
Click the Edit in Word button to open the PDF file for editing. Say yes when OneDrive asks for your permissions to convert the PDF into Word format (it makes a copy so your original PDF is unaltered). | |
Once the file is converted to PDF, click the Edit button to open the converted document in the Word app for editing. | |
Since you now editing the PDF as a standard Word document, you can edit it to your heart’s content. You can add images, change the logo, modify the text or apply different formatting, add tables and more. Once you are done, go to the File menu and choose Save As to download it as a PDF file again. |
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 <iostream> | |
#include <string> | |
#include <curl/curl.h> | |
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) | |
{ | |
((std::string*)userp)->append((char*)contents, size * nmemb); | |
return size * nmemb; | |
} |
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
Show hidden characters
{ | |
"working_dir": "$file_path", | |
"shell_cmd":"mvn clean install", | |
"variants": [ | |
{ | |
"name": "mvn clean install", | |
"shell_cmd": "mvn clean install" | |
}, | |
{ | |
"name": "mvn full build", |
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
/** | |
* <h2> Converts ResultSet to HashMap of List<String,Object></h2> | |
* @param row | |
* @param rs_SubItemType | |
* @throws SQLException | |
*/ | |
private static void getHashMap( List<Map<String, Object>> row, ResultSet rs_SubItemType) throws SQLException { | |
ResultSetMetaData metaData = rs_SubItemType.getMetaData(); |
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
# ksh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |