Skip to content

Instantly share code, notes, and snippets.

@thexmeta
thexmeta / readme.md
Created April 26, 2024 15:19 — forked from juyal-ahmed/readme.md
Downloading HTTP directory with all files and sub-directories
wget -r -N -np -nH --cut-dirs=3 -R index.html http://hostname/aaa/bbb/ccc/ddd/

Explanation:

  1. It will download all files and subfolders in ddd directory:
  2. recursively (-r),
  3. not going to upper directories, like ccc/… (-np),
  4. not saving files to hostname folder (-nH),
  5. but to ddd by omitting first 3 folders aaa, bbb, ccc (--cut-dirs=3)
@thexmeta
thexmeta / github_desktop_ubuntu.md
Created March 26, 2024 07:21 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@thexmeta
thexmeta / gist:da53ee0a24cb4683eb96b6243579ba10
Created January 1, 2024 23:39 — forked from mde/gist:967610
HTML markdown viewer
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="./showdown.js"></script>
<title>
Markdown Viewer
</title>
<style type="text/css">
@thexmeta
thexmeta / patch_apk_for_sniffing.md
Created November 9, 2023 15:37 — forked from unoexperto/patch_apk_for_sniffing.md
How to patch Android app to sniff its HTTPS traffic with self-signed certificate

How to patch Android app to sniff its HTTPS traffic with self-signed certificate

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar /home/expert/work/tools/apktool.jar d net.flixster.android-9.1.3@APK4Fun.com.apk
  • Modify AndroidManifest.xml by adding android:networkSecurityConfig="@xml/network_security_config" attribute to application element.
  • Create file /res/xml/network_security_config.xml with following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config>
@thexmeta
thexmeta / latest-eclipse-jee.ps1
Last active May 22, 2022 17:58
Download and install latest eclipse jee
Find-Module -Name Recycle | Install-Module
Import-Module Recycle
$Log = "$(Split-Path $MyInvocation.MyCommand.Path)\Error-$(Get-Date -format 'MMddyy-hhmm').log"
$myURI = "https://download.eclipse.org/technology/epp/downloads/release/release.xml"
$doc = New-Object System.Xml.XmlDocument
$doc.Load($myURI)
# [xml]$doc = (New-Object System.Net.WebClient).DownloadString($myURI)
$presentversion = $doc.packages.present