Posts

Extract sound files from steam games

Example: Sleeping Dogs Download Wwise from Github: https://github.com/Vextil/Wwise-Unpacker Extract it to a location of your choice. Locate the sound's pck files In Sleeping Dogs, it could be C:\Program Files (86)\Steam\SteamApps\common\SleepingDogsDefinitiveEdition\data\Audio\SD2\ Move the .pck file to Game Files\ folder of the Wwise extracted files. Click on either Unpack to MP3.bat or Uupack to OGG.bat to start the conversion. Ref: https://steamcommunity.com/app/202170/discussions/0/517142892061333536/

Download media stream available in m3u8 format

Locate the m3u8 stream of the media: Install Firefox plugin "The Stream Detector" or "Video DownloadHelper". Then when you use Firefox to browse pages with media, you will be able to get the link to the m3u8 media streams (master.m3u8). Download the media for 30s: Use ffmpeg: ffmpeg -i " m3u8_full_web_path " -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 -t 00:00:30 local_file_location Download the content specified in the master.m3us8 file ffmpeg -i <master.m3u8 file>  -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4

Using Windscribe VPN service provide with Kodi

Instruction 1) Download VPN Manager. Download and save the repository here : Repository Install it via Systems/Addons/Install from zip (you can put the repository zip on a network attached drive or USB key) Then install VPN Manager via Systems/Addons/Install from repository/Zomboided Addon repository Reference: https://github.com/Zomboided/service.vpn.manager/wiki/01.-Installation 2) Install additional prerequisites Hit escape on your keyboard to back out to the main Kodi screen Scroll over to PROGRAMS -> VPN MANAGER FOR OPENVPN Click on ADD-ON SETTINGS Now comes the fun part! Change the VPN Provider to the VPN you use (I use Private Internet Access) and enter in your Username and Password. Don't change anything else. Scroll to the top and move right until you get to DEBUG. Click ENABLE DEBUG FOR JUST VPN MANAGER Make sure USE SUDO WITH OPENVPN AND KILLALL is set to 'default' or 'always' Click 'ALWAYS USE KODI LOG DIRECTORY FOR OPENVPN LOG ...

MTU

There is kind of a work around to detect MTU problems with TCP using ICMP as a base: http://en.wikipedia.org/wiki/Path_MTU_Discovery PMTU. The caveats are: it doesn't work with UDP, and some scenarios with ICMP being blocked or old operating systems, and some interoperability/network topology situation The problem comes when you want to send more data over this connection - lets say you wanted to send 3000 bytes: your computer would split this up based on your MTU - in this case, two packets of 1500 bytes each, and send them to your ADSL modem which would then split them up so that it can fulfill its MTU. Now your 3000 byte data has been fragmented into four packets: two with a payload of 1492 bytes and two with a payload of 8 bytes. This is obviously inefficient, we really only need three packets to send this data. Had your computer been configured with the correct MTU for the network, it would have sent this as three packets in the first place (two 1492 byte...

VPN server setup

References: https://askubuntu.com/questions/119534/easiest-way-to-setup-ubuntu-as-a-vpn-server https://pimylifeup.com/raspberry-pi-vpn-server/ OpenVPN https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 In server conf, use dev tap  and server-bridge 192.168.0.104 255.255.255.0 192.168.0.201 192.168.0.210 if you are doing ethernet-bridging, use dev tun, server 10.8.0.0 255.255.255.0 for  IP tunneling In client conf, use dev tap if you are doing ethernet-bridging, use dev tun for Port forwarding from home router to a server in your private network NoIP for dynamic DNS. Integration with common switches Set up proxy server with squid Ubuntu uses UFW to manage the firewall https://help.ubuntu.com/community/UFW

Building a Windows XP machine after its EOL

Reimage the machine with a Windows XP CD. Install Service Pack 2 and then Service Pack 3. If you wish to change the system language, it is a good chance to do it. See below: http://tylau0.blogspot.com/2017/05/download-location-of-essential-windows.html http://tylau0.blogspot.com/2017/05/change-windows-xp-language.html To maintain updates from Microsoft, you may change the system to POSReady2009. See below: http://tylau0.blogspot.com/2017/05/turn-windows-xp-to-windows-posready2009.html If the update KB2686509 fails to get installed, download the patch corresponding to Windows XP from the following site and install it manually. http://www.catalog.update.microsoft.com/Search.aspx?q=KB2686509

Download location of Essential Windows XP updates after EOL

For English version of SP2 and SP3, try out http://www.catalog.update.microsoft.com. Look up "Windows XP Service Pack 2" and "Windows XP Service Park 3". If you need IE8 for Windows XP, try out the following: http://go.microsoft.com/fwlink/?linkid=261544 For Traditional Chinese SP2 and SP3, look at the following locations: http://ftp.dyu.edu.tw/pub/ WindowsXP-KB835935-SP2-CHT. exe.html http://ftp.dyu.edu.tw/pub/ WindowsXP-KB936929-SP3-x86- CHT.exe.html