Skip to content

Instantly share code, notes, and snippets.

@manoharuss
manoharuss / curl_example.cpp
Created January 20, 2022 17:27 — forked from alghanmi/curl_example.cpp
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
@manoharuss
manoharuss / .bash_aliases
Created May 5, 2020 23:53 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@manoharuss
manoharuss / VLC2Android
Last active August 29, 2015 14:06
This Python script can be used to convert VLC playlists to be compatible with any Android Phone (*\\Music Directory *Paste the output playlist in your Android phone)
##This script is subject to conditions under GNU General Public License
##Please save this python script in the same folder
##as your VLC or Windows Media playlist, you want to convert
##Read in the file with format extension
with open ("INPUT_VLCplaylist_HERE.m3u", "r") as myfile:
data=myfile.read().replace('\n', '')