Skip to content

Instantly share code, notes, and snippets.

View raihanadf's full-sized avatar
💤
busy sleeping

Raihan A. raihanadf

💤
busy sleeping
View GitHub Profile
@SHDShim
SHDShim / latex2word.md
Last active November 13, 2024 08:16
Pandoc - LaTeX to WORD conversion

LaTeX to WORD conversion

In most cases, it is simpler to (1) read a PDF file directly in WORD, or (2) use save as function in Acrobat Reader to save as a DOC file.

Install Pandoc

Pandoc can be installed in anaconda by

conda install pandoc
@lbrame
lbrame / archtweaks.md
Last active June 24, 2025 09:25
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@mikeboiko
mikeboiko / tmux.conf
Last active July 6, 2025 19:50
Automatically update $DISPLAY for each tmux pane after attaching to session
set-hook -g client-attached 'run-shell /bin/update_display.sh'
@lukasdylan
lukasdylan / activity_match_detail.xml
Created July 7, 2019 06:27
Collapsing Toolbar with extra layout
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/root_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@5shekel
5shekel / export-ble-infos.py
Last active July 28, 2024 14:35 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Export your Windows Bluetooth LE keys into Linux! (arch edition)
Thanks to: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html
discussed here: https://unix.stackexchange.com/questions/402488/dual-boot-bluetooth-device-pairing
Usage:
$ ./export-ble-infos.py <args>
$ sudo bash -c 'cp -r ./bluetooth /var/lib'
@Yousha
Yousha / .gitignore
Last active June 12, 2025 09:02
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@sam0x17
sam0x17 / disable middle click paste in linux.md
Last active July 30, 2023 18:17
disable middle-click paste in linux without disabling middle scroll

Disable middle-click paste in Linux

Install packages:

sudo apt-get install xbindkeys xsel xdotool

Create xbindkey configuration file:

# ~/.xbindkeysrc
@LeonardoCardoso
LeonardoCardoso / gitzip.sh
Last active December 22, 2024 21:31
Zip folder ignoring files listed on .gitignore
#...
function gitzip() {
git archive -o $@.zip HEAD
}
#... gitzip ZIPPED_FILE_NAME
@laterbreh
laterbreh / Express 4 and Socket.io: Passing socket.io to routes - app.js
Last active August 15, 2023 13:58
Express 4 and Socket.io: Passing socket.io to routes.
var app = express();
app.io = require('socket.io')();
var routes = require('./routes/index')(app.io);
app.use('/', routes);