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 <vector> | |
| // | |
| // 문자열을 구 또는 단어 단위로 분리하는 함수. | |
| // | |
| // str: 분리할 문자열. | |
| // div: 분리된 문자열의 벡터. | |
| // |
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> | |
| #ifdef WIN32 | |
| #define popen _popen | |
| #define pclose _pclose | |
| #endif | |
| FILE *stream = popen("ssh pr0ximo@192.168.2.144 cat /home/pr0ximo/2008.csv", "r"); | |
| int main(int argc, char **argv) |
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
| rm -Rf /Applications/Android\ Studio.app | |
| rm -Rf ~/Library/Preferences/AndroidStudio* | |
| rm ~/Library/Preferences/com.google.android.studio.plist | |
| rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
| rm -Rf ~/Library/Logs/AndroidStudio* | |
| rm -Rf ~/Library/Caches/AndroidStudio* | |
| rm -Rf ~/.gradle | |
| rm -Rf ~/.android |
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 off | |
| "%1\bin\cygrunsrv.exe" -E sshd | |
| "%1\bin\cygrunsrv.exe" -R sshd | |
| takeown /r /d y /f "%1" | |
| icacls "%1" /t /grant Everyone:F |
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
| for(index = 0; index < 128; index++) | |
| { | |
| _asm | |
| { | |
| ov al, index | |
| ut 0x70, al | |
| n al, 0x71 | |
| ov tvalue, al | |
| } | |
| } |
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
| /* Swift 3.0 UINavigationController 기기 방향 고정 */ | |
| extension UINavigationController { | |
| override open var shouldAutorotate: Bool { | |
| return false | |
| } | |
| override open var supportedInterfaceOrientations : UIInterfaceOrientationMask { | |
| return .portrait | |
| } | |
| } |
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 <vector> | |
| #include <assert.h> | |
| using namespace std; | |
| typedef unsigned short uattr; | |
| typedef unsigned char uchar; | |
| typedef uchar Vec3b[3]; |
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
| # at boot: fs0:\efi\ubuntu\grubx64.efi (Enter) | |
| sudo mount /dev/sda1 /mnt | |
| sudo sh -c "echo '\EFI\ubuntu\grubx64.efi' > /mnt/startup.nsh" | |
| sudo umount /mnt |
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 <unistd.h> | |
| #include <termios.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #define USBWD_SYN ((unsigned char)0x80) | |
| #define USBWD_ACK ((unsigned char)0x81) |
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> | |
| typedef char MSGBUF[64]; | |
| int GetCpuBrandString(MSGBUF dst) | |
| { | |
| unsigned long ul; | |
| unsigned long uls[12] = {0x00}; |
OlderNewer