Skip to content

Instantly share code, notes, and snippets.

View cobaohieu's full-sized avatar

Hieu C B cobaohieu

View GitHub Profile
<?php
$url = "http://www.phimmoi.net/phim/huyen-thoai-cua-ngay-mai-phan-4-7585/xem-phim.html";
$ch = curl_init();
{
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 13, 2026 11:12
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@growtopiajaw
growtopiajaw / update-python.md
Created August 11, 2018 05:09
update-alternatives for python2 and python3 in Ubuntu 16.04.x

List available python options

ls -larth `which python`*
lrwxrwxrwx 1 root root   10 Mar 23  2016 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root    9 Mar 23  2016 /usr/bin/python3 -> python3.5
lrwxrwxrwx 1 root root    9 Nov 24  2017 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root    9 Nov 24  2017 /usr/bin/python -> python2.7
-rwxr-xr-x 2 root root 4.3M Nov 28  2017 /usr/bin/python3.5m
-rwxr-xr-x 2 root root 4.3M Nov 28  2017 /usr/bin/python3.5
@jkjung-avt
jkjung-avt / camera-ssd-threaded.py
Last active June 20, 2023 15:11 — forked from ck196/ssd_500_detect.py
Capture live video from camera and do Single-Shot Multibox Detector (SSD) object detetion in Caffe on Jetson TX2/TX1.
# --------------------------------------------------------
# Camera Single-Shot Multibox Detector (SSD) sample code
# for Tegra X2/X1
#
# This program captures and displays video from IP CAM,
# USB webcam, or the Tegra onboard camera, and do real-time
# object detection with Single-Shot Multibox Detector (SSD)
# in Caffe. Refer to the following blog post for how to set
# up and run the code:
#
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 17, 2026 22:40
crack activate Office on mac with license file
@MalloyDelacroix
MalloyDelacroix / PyQt5WindowChangeExample.py
Last active July 4, 2023 09:05
A PyQt5 example of how to switch between multiple windows.
import sys
from PyQt5 import QtCore, QtWidgets
class MainWindow(QtWidgets.QWidget):
switch_window = QtCore.pyqtSignal(str)
def __init__(self):
QtWidgets.QWidget.__init__(self)
@DuckTeamOfficial
DuckTeamOfficial / WindowsStoreApps
Last active September 14, 2025 16:06
Remove or Reinstall Windows Store Apps on Windows 10
Note: Run PowerShell as Administrator!
Delete all builtin apps except photo viewer and calculator (xbox will throw error as game bar is not removed but everything else is!);
Get-AppxPackage -allusers *3dbuilder* | Remove-AppxPackage
Get-AppxPackage -allusers *alarms* | Remove-AppxPackage
Get-AppxPackage -allusers *appconnector* | Remove-AppxPackage
Get-AppxPackage -allusers *appinstaller* | Remove-AppxPackage
Get-AppxPackage -allusers *communicationsapps* | Remove-AppxPackage
Get-AppxPackage -allusers *camera* | Remove-AppxPackage
@kevbost
kevbost / WSL Install Guide.md
Created January 25, 2018 19:21
WSL Install Guide Windows

Ubuntu

Windows Subsystem for Linux [Very Easy Installation]

  1. https://msdn.microsoft.com/commandline/wsl/install_guide
    • [Follow instructions carefully and remember your password]
    • [it will prompt for password]
    • [password will not appear while you type, just push enter when finished]
  2. Open "Bash on Ubuntu on Windows"
  3. Run the commands formatted as code separately
  • (they will take a while to complete)
@r00tdaemon
r00tdaemon / Install PyQt5 on Ubuntu with python3 .md
Last active December 5, 2025 11:29
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

@ivcn
ivcn / thread_pool.cpp
Created May 16, 2017 18:50
An example of thread pool using two conditional variables
#include <iostream>
#include <deque>
#include <functional>
#include <thread>
#include <condition_variable>
#include <mutex>
#include <random>
//thread pool
class ThreadPool