Skip to content

Instantly share code, notes, and snippets.

View tazihad's full-sized avatar
🎯
Focusing

Zihad tazihad

🎯
Focusing
View GitHub Profile
@bijij
bijij / viewimage.user.js
Last active March 3, 2024 16:28
Userscript version of the View Image chrome extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 4.1.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js
@steven2358
steven2358 / ffmpeg.md
Last active May 27, 2024 19:15
FFmpeg cheat sheet
@edcote
edcote / why_throttle.md
Last active February 28, 2023 20:40
Linux CPU throttle and I/O performance tips

CPU performance

My workstation's CPU has been throttling and/or running slow for the past 48 hours. Here are the commands that I used to debug the problem.

First, core temperatues were checked:

$ watch sensors
coretemp-isa-0000
Adapter: ISA adapter
@adnan360
adnan360 / kde-ibus-bangla-instructions-plasma5.md
Last active October 18, 2021 12:09
How to write Bangla in Arch/Manjaro Linux KDE (Plasma 5) (every app including Libreoffice, KDE apps)

How to setup/write in Bangla/Bengali in KDE using unijoy layout.

This instruction was tested on Manjaro 17 KDE, which had Plasma 5.9.3, Qt 5.8.0, KDE Frameworks 5.31.0. Libreoffice Version: 5.2.5.1.

Open a terminal and run:

sudo pacman -S ibus ibus-qt ibus-m17n m17n-db
@enzinier
enzinier / install_font_adobe_source_code_pro.sh
Created March 4, 2017 03:38
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
@j-jith
j-jith / miui-fastboot-howto.rst
Last active May 17, 2024 11:34
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active June 1, 2024 14:33
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@sandeepraju
sandeepraju / download-chromium.sh
Last active January 19, 2024 14:00
Download the latest bin of chromium for linux
#!/bin/bash
# source: http://askubuntu.com/a/64396/174460
CHROMIUM_ROOT="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64"
CHROMIUM_LATEST=`wget -q -O - "$CHROMIUM_ROOT/LAST_CHANGE"`
wget $CHROMIUM_ROOT/$CHROMIUM_LATEST/chrome-linux.zip
@Changaco
Changaco / btrfs-undelete
Last active April 22, 2024 20:06
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo
@hootlex
hootlex / laravellocal.md
Last active May 3, 2024 08:06
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci