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
#!/usr/bin/env python2.7 | |
def factorial(n): | |
ans = 1 | |
if n == 0 or n == 1: | |
ans = 1 | |
elif n < 0: | |
ans = 'no answer' | |
else: | |
for i in range(2, n+1): |
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
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
from random import randint | |
board = [] | |
turn = 0 | |
#tạo sân chơi | |
for x in range(0,5): |
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
#!/usr/bin/env python2.7 | |
import pygame | |
import sys | |
pygame.init() | |
DISPLAYSURF = pygame.display.set_mode((400,300)) | |
pygame.display.set_caption("Hello World") | |
while True: | |
for i in pygame.event.get(): |
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
import pygame | |
#colors | |
black = (0 ,0 ,0 ) | |
white = (255,255,255) | |
blue = (0 ,0 ,255) | |
green = (0 ,255,0 ) | |
red = (255,0 ,0 ) | |
#width&height |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX 1000 | |
typedef struct dictionary{ | |
char word[20]; | |
char def[50]; | |
float point; |
##Step 1 - Backup your /home folder
- Install Backups tool by typing in the Terminal:
sudo apt-get install deja-dup
- Backup your /home folder. Default backup is stored in ~/deja-dup folder
##Step 2 - Backup your package list
- Backup package list:
sudo dpkg --get-selections > PackageList.txt
- Backup APT-key:
sudo apt-key exportall > RepoKeys.txt
- Backup Source folder:
sudo cp /etc/apt/sources.list.d source.list.d
- Copy all those files to an USB
Surfvox nói chung là một search engine nhưng hành xử như cc, cài đặt ngầm, chạy ngầm, hijack browser và ngăn chặn gỡ bỏ.
Dính Surfvox, máy sẽ có các triệu chứng như:
- Homepage mặc định và search engine bị đổi thành surfvox.com (duh)
- Không thể mở Task Manager, Regedit, Msconfig, thậm chí google từ khóa nvxasync (file chạy và chiếm quyền của surfvox)
- Không thể cài đặt các chương trình diệt malware, adware, CCleaner, YourUninstaller ... Các file exe của surfvox nói chung nằm trong %APPDATA%/nvxasync nhưng vào cmd gõ dir và del đều không có tác dụng.
Để hốt con sâu này ta cần:
- Một Task Manager khác do Task Manager mặc định đã bị vô hiệu hóa: Process Hacker.
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
STUDENT: Sir, can I ask a question? | |
TEACHER: Yes! | |
STUDENT: How do you put an elephant inside a fridge? | |
TEACHER: I don't know. | |
STUDENT: It's easy, you just open the fridge and put it in. I have another question! | |
TEACHER: Ok, ask. | |
STUDENT: How to put a donkey inside the fridge? | |
TEACHER: It's easy, you just open the fridge and put it in. | |
STUDENT: No sir, You just open the fridge take out the elephant and put it in. | |
TEACHER: Ooh...ok!! |
OlderNewer