Skip to content

Instantly share code, notes, and snippets.


Yassine ElBadaoui byassine52

View GitHub Profile
byassine52 / .sublime-keymap
Created Jul 2, 2021
Sublime Text 3 - Plugin to "Open File by Path" quick access
View .sublime-keymap
// Open File by Path shortcut //
{ "keys": ["ctrl+shift+o"], "command": "open_file_by_path" },

I have two user accounts set up on my mac. User drew I use for most things, but if I'm making a screencast I'll switch to the demo user. I know that the demo user has a clean desktop, and the font size is larger than usual in my terminal and text editors, making everything a bit more legible when capturing the screen. When I record a screencast as the demo user, I save the file to /Users/Shared/screencasts. As I understand it, the /Users/Shared directory is supposed to be accessible to all user accounts on the mac. If I created and saved a screenflow document as the demo user, I should be able to read and write that file when logged in as user drew.

That was the theory, but it didn't always work out that well in practice. I would occasionally find that a directory was only writable by one user or the other. Perhaps I'd open a screenflow document as user drew and attempt to export the video to the same directory, only to find that the directory was owned by demo, meaning that I couldn't cr

byassine52 / aria2.conf
Created Jun 1, 2021 — forked from qzm/aria2.conf
Best aria2 Config
View aria2.conf
### Basic ###
# The directory to store the downloaded file.
# Downloads the URIs listed in FILE.
# Save error/unfinished downloads to FILE on exit.
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
byassine52 / no_automount
Last active Feb 1, 2020 — forked from voltechs/no_automount
Add volume (UUID) to fstab to prevent automount (macOS)
View no_automount
#!/usr/bin/env ruby
# Usage: no_automount /Volumes/My\ Disk
diskinfo = `diskutil info '#{ARGV[0]}'`.gsub("\n\n", "\n").split("\n").collect do |b|
disk_uuid = diskinfo['Volume UUID']
disk_type = diskinfo['Type (Bundle)']
byassine52 /
Created Feb 13, 2018 — forked from nickcheng/
git aliases for ignoring files locally.
git config --global alias.ignore 'update-index --skip-worktree'
git config --global alias.unignore 'update-index --no-skip-worktree'
git config --global alias.ignored '!git ls-files -v | grep "^S"'


byassine52 /
Created Jun 7, 2017 — forked from trey/
Using Dropbox to Share Git Repositories

Using Dropbox to Share Git Repositories

First, create a Git subfolder inside your Dropbox folder. Then you can share the individual projects inside that folder with whomever you want (or just use it for instant offsite backups).

From inside a Git project:

git clone --bare . ~/Dropbox/Git/gitproject.git
git remote add dropbox ~/Dropbox/Git/gitproject.git

When you're ready to push:

View install-tmux
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
curl -OL
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
byassine52 / dabblet.css
Created Feb 17, 2012
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;