Skip to content

Instantly share code, notes, and snippets.

@Sohil876
Sohil876 / topics-search.txt
Created January 18, 2023 11:24 — forked from usametov/topics-search.txt
how to search github.com for multiple topics
Github.com ui .currently does not natively supoport search for multiple topic tags as of now. However their api allows you to query multiple tags. Below is a simple example to query github.com with ecs and go topic tags.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:ecs+topic:go
Response from the github can be rather verbose so lets filter only relavant info such repo url and description.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:ecs+topic:go | jq '.items[] | {url:.url, description:.description}'
@Sohil876
Sohil876 / gist:63599e5ad25a87d45698a25ee2bce307
Created April 26, 2021 12:05 — forked from DD3Boh/gist:6c51fd3c5f91b1042e956771483714de
How to merge a newer CAF tag in an android kernel
First go here:
https://wiki.codeaurora.org/xwiki/bin/QAEP/release
This site gives information about all msm soc release details with tag + android version
Search your msm here.. Check the latest one and look for correct android version and mark that tag.
Now open one of the following links (dependent on your linux kernel version)
@Sohil876
Sohil876 / mosh.md
Created May 29, 2020 12:52 — forked from rwuwon/mosh.md
Connect to a Google Cloud Compute Engine using Mosh (mobile shell)

Connect to a Google Cloud Compute Engine using Mosh (mobile shell)

Mosh is a great way to overcome lag and flakey connection issues when accessing remote terminals over SSH: https://mosh.org/

Unfortunately, there's still not a lot of clear documentation for "idiots" because a lot of the existing guides assume a) "it just works", or b) you're already skilled enough to set everything up from scratch (assumed knowledge/use cases).

One of the problems I ran into for quite a long time yesterday was getting the darn thing to connect to my Google Cloud instance. I kept running into the mosh: Nothing received from server on UDP port 60001. [To quit: Ctrl-^ .] error (by the way - to quit, you have to press . after Ctrl-^ - it's not just Ctrl-^, there is a dot there too!)

FAQs and the like made vague spartan references to NATs, firewalls, iptables and the like and I tried out various commands and configurations on the se

@Sohil876
Sohil876 / gist:a00e91408527d06626e5b29cf978fd48
Created February 29, 2020 18:17
-:Download Gdrive files through Wget:-
Command for downloading any big file from google drive (for big file we need confirm download)
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
I've used @beliys code and made a bash command.
Setup:
Add this code to your ~/.bash_aliases file.
function gdrive_download () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
@Sohil876
Sohil876 / glshim.sh
Created April 19, 2016 12:03 — forked from Hiradur/glshim.sh
Shell sript to build glshim and and run games with it on Raspberry Pi
#!/bin/sh
# Original author: Hiradur
# License: CC0
# Purpose: Build and update glshim, glues and TinyGLES, set up correct paths for programs
set -eu # stop script on errors
GLWRAPPER_INSTALL_DIR=~/glwrapper # source code and binary files will be placed here
# if no arguments are given
# download/update glshim, glues and tinygles code and compile