This file contains 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 <cmath> | |
#include <string.h> | |
#include <iostream> | |
using namespace std; | |
class Integer { | |
public: | |
char* value[2] = { strdup("0"), strdup("+") }; |
This file contains 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
"""HTTP server classes. | |
Note: BaseHTTPRequestHandler doesn't implement any HTTP request; see | |
SimpleHTTPRequestHandler for simple implementations of GET, HEAD and POST, | |
and CGIHTTPRequestHandler for CGI scripts. | |
It does, however, optionally implement HTTP/1.1 persistent connections, | |
as of version 0.3. | |
Notes on CGIHTTPRequestHandler |
This file contains 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
# python3 -m pip install psutil | |
# python3 -m pip install opencv-python | |
import cv2 | |
import copy | |
import os | |
import psutil | |
import time | |
import shutil |
This file contains 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
# ......... append these lines into your bashrc file ......... # | |
# run schedule.sh | |
if [ -f $HOME/schedule.sh ]; then | |
echo " __________" | |
echo -e "}~~~~[ SCHEDULE ]" | |
echo " ▔▔▔▔▔▔▔▔▔▔" | |
. $HOME/schedule.sh | |
fi |
This file contains 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
FILE=hello_world | |
CONTENT=$(cat <<-END | |
public class $FILE { | |
public static void main(String[] args) { | |
System.out.println( | |
"Excuse me, what the fuck!\\\n" + | |
"U dont know how to build jar by command?" | |
); | |
} | |
} |
This file contains 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
update_data () { | |
printf "[+] Update Data, Please Wait!\n" | |
rm ~/..locate_* | |
sudo find />~/..locate_$(date +%s) 2>/dev/null | |
exit 0 | |
} | |
if [ "$1" = "--update" ]; | |
then | |
update_data |
This file contains 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
/* === Map on Vietnamese === */ | |
// Units | |
MAP_VALUE = { | |
N: Math.pow(10,3), | |
Tr: Math.pow(10,6), | |
T: Math.pow(10,9) | |
} | |
// Details Regex | |
DETAILS = /(([\d,]+).+lượt xem)/ | |
/* ================================= */ |
This file contains 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
""" | |
|>>> I WILL PULBLISH THIS SOURCE AS A OFFICAL REPOSITORY AS SOON AS POSSIBLE | |
|>>> AND HOW TO INSTALL DUE TO EXPORTING AS SESSION VAR IN TERMINAL | |
# HOW TO USE?? | |
+ python3 % -n name\.txt$ -v danh (search by name) | |
+ python3 % -n "password:[^ ]+" (search by contect) | |
""" | |
from os import popen, system, path, listdir |
This file contains 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
# Make Assembly Great Again(linux)!!! # | |
[+] Hello world | |
```` | |
section .data | |
msg db 'Hello, world!' ;string to be printed | |
len equ $ - msg ;length of the string | |
section .text | |
global _start ;must be declared for linker (ld) |
This file contains 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
def get_namespace(url) | |
namespace = "" | |
url.length.times { |i| | |
position = url.length - i - 6 | |
if url[position] == "/" | |
break | |
end | |
namespace = url[position] + namespace | |
} | |
return namespace |
OlderNewer