Skip to content

Instantly share code, notes, and snippets.

@amirvenus
amirvenus / convert
Created November 13, 2022 11:05 — forked from ahadyekta/convert
Batch convert JPG to WebP in Ubuntu
#First install the webp converter by this
sudo apt-get install webp
#go inside the directory where all images are there
#make sure all images are in RGB color mode, otherwise you will get error for CMYK images.
#Convert all images to RGB by this command (you should install ImageMagik to do that)
for f in *.jpg; do convert -colorspace RGB "$f" "${f}"; done
#finally convert all images to Webp format
@amirvenus
amirvenus / MaterialIcon Xamarin.Forms
Created August 15, 2020 19:02
Complete list of Material Font Image Source codes to be used inside App.xaml.cs in Xamarin.Forms
<x:String x:Key="VectorSquare"> &#xf0001;</x:String>
<x:String x:Key="AccessPointNetwork"> &#xf0002;</x:String>
<x:String x:Key="AccessPoint"> &#xf0003;</x:String>
<x:String x:Key="Account"> &#xf0004;</x:String>
<x:String x:Key="AccountAlert"> &#xf0005;</x:String>
<x:String x:Key="AccountBox"> &#xf0006;</x:String>
<x:String x:Key="AccountBoxOutline"> &#xf0007;</x:String>
<x:String x:Key="AccountCheck"> &#xf0008;</x:String>
<x:String x:Key="AccountCircle"> &#xf0009;</x:String>
<x:String x:Key="AccountConvert"> &#xf000a;</x:String>
This file has been truncated, but you can view the full file.
1>------ Rebuild All started: Project: PeachPied.WordPress.Sdk, Configuration: Debug Any CPU ------
1>PeachPied.WordPress.Sdk -> C:\Users\Amir H\Downloads\wpdotnet-sdk-master\wpdotnet-sdk-master\PeachPied.WordPress.Sdk\bin\Debug\netstandard2.0\PeachPied.WordPress.Sdk.dll
1>Successfully created package 'C:\Users\Amir H\Downloads\wpdotnet-sdk-master\wpdotnet-sdk-master\build\../output\PeachPied.WordPress.Sdk.1.0.0.nupkg'.
1>C:\Program Files\dotnet\sdk\3.1.200\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5): warning NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl
1>Done building project "PeachPied.WordPress.Sdk.csproj".
2>------ Rebuild All started: Project: PeachPied.WordPress, Configuration: Debug Any CPU ------
2>C:\Users\Amir H\.nuget\packages\microsoft.build.tasks.git\1.0.0\build\Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with workin
@amirvenus
amirvenus / m3u8.md
Created July 17, 2019 20:54 — forked from primaryobjects/m3u8.md
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.