Skip to content

Instantly share code, notes, and snippets.

View tm9k1's full-sized avatar
🎯
In flight

Piyush Aggarwal tm9k1

🎯
In flight
View GitHub Profile
@tm9k1
tm9k1 / format_doc.md
Created November 12, 2018 18:01
For VS Code extension (Format Document)

yay -S ncurses5-compat-libs

Sometimes Format Doc not runs becoz you didn't have the libraries. Use that command up there !

@tm9k1
tm9k1 / kdewindows01.md
Last active December 14, 2018 18:37
How to setup a dev environment and build a setup out of KDE Connect for Windows

NOTE: This tutorial assumes Craft is being installed in C:/ [default]

SETTING UP ENVIRONMENT

  1. Install Visual Studio 2017 from here

  2. Install these packages :-

Just-in-Time debugger
VC++ 2017 version 15.9
@tm9k1
tm9k1 / plasma_mobile.md
Created January 20, 2019 11:36
Setting up Plasma Mobile
@tm9k1
tm9k1 / withGPS.ino
Last active May 9, 2019 23:16
OTP based Lock system to work with SIM900 and NEOSIM GPS. Regularly send GPS coordinates to the phone that asked for OTP (starting from when unlocked till the lock is not armed again). Open to suggestions, please do tag me (@brute4s99). :)
/*
Connect 5VT to D9 and 5VR to D10
Feed GSM SIM900A with Arduino's 5V
Code by Piyush Aggarwal
1 -
2 -
3 -
4 -
5 -
6 -
@tm9k1
tm9k1 / milestone2.md
Created June 22, 2019 23:08
GSoc 2019 Milestone 2 [SFTP] Progress

Aiming to make use of : https://github.com/alamaison/swish

^ have made forks of Swish (+all deps) on my own GitHub and modified to support Craft installation as a blueprint.

To test these blueprints,

switch blueprints branch

git checkout brute4s99/swish
@tm9k1
tm9k1 / snore-ftw.md
Last active June 25, 2019 05:29
GSoC Milestone 1 Testing -- Windows Toast Notification backend for KNotifications
```
# // // // // H I S T O R Y // // // // #
#
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
#
# // // // // H I S T O R Y // // // // #
@tm9k1
tm9k1 / kdeconnect-win.code-workspace
Created May 30, 2021 08:50
Workspace file for KDE Connect for Windows port development using Craft
{
"folders": [
{
"name": "kdeconnect-kde",
"path": "C:/CraftRoot/download/git/kde/applications/kdeconnect-kde",
}
],
"launch": {
"version": "0.2.0",
"configurations": [
@tm9k1
tm9k1 / kde-craft-linux.code-workspace
Last active July 25, 2021 06:07
Workspace file for KDE Connect for Linux build development using Craft
{
"folders": [
{
"name": "kdeconnect-kde",
"path": "/home/tm9k1/CraftRoot/download/git/kde/applications/kdeconnect-kde",
},
{
"name": "craft-blueprints-kde",
"path": "/home/tm9k1/CraftRoot/etc/blueprints/locations/craft-blueprints-kde",
},
@tm9k1
tm9k1 / HEVC Youtube-dl.md
Created October 12, 2021 10:10
Commands to convert an existing file to HEVC or to download a Youtube video and save as HEVC video
  • Converting a video file to HEVC with NVENC hardware encoder (NVIDIA GPUs ONLY)
ffmpeg -i "some_video_file.ext" -c:v hevc_nvenc -pixel_format yuv444p -preset medium -c:a copy output2.mp4
  • Downloading a Youtube video and converting to NVENC-HEVC along the way
youtube-dl https://www.youtube.com/watch?v=hpgQsKtf7AA -f 'bestvideo[height>=1080]+bestaudio/best[height>=1080]' -o '%(title)s.%(ext)s' --postprocessor-args "-c:v hevc_nvenc -pixel_format yuv444p -preset medium -c:a copy"