Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rohan Rajpal rohanrajpal

🏠
Working from home
View GitHub Profile
@rohanrajpal
rohanrajpal / .ideavimrc
Created Jul 22, 2021
My idea vimrc setup
View .ideavimrc
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
"set number relativenumber
set idearefactormode=keep
set ideajoin
set incsearch
View my-pppscript.sh
#!/bin/bash
#
# Whitelist here all domains that need to go through openfortivpn
# Domains and IPs are separated by a space
#
ips='192.168.2.217 192.168.29.151'
domains='example.com example.fr'
let resolved
for domain in $domains; do
View tejas.cpp
#include <bits/stdc++.h>
using namespace std;
struct Result{
char* output[100];
};
Result res;
void autocorrect(char *input1,char *input2)
{
int str_length = 0;
View gist:a196e42e252e37bb692730e5ac1dc0dc
ObjectModel{
id: centermodel
Utils.IconToolButton {
id: randomBtn
size: VLCStyle.icon_large
checked: mainPlaylistController.random
text: VLCIcons.shuffle_on
onClicked: mainPlaylistController.toggleRandom()
KeyNavigation.right: prevBtn
View gist:448be87ecc57158be91426a5dec8bc35
rohan@asus ~/D/V/t/vlc> ./vlc
VLC media player 4.0.0-dev Otto Chriek (revision 94036d2bdb)
[00005596575dcd90] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[00007fcfb181fae0] vaapi generic: Using Intel i965 driver for Intel(R) Kaby Lake - 2.1.0
View gist:a380f8d63100761cd757958695eb2889
######################################################################
# Automatically generated by qmake (3.1) Sat Mar 16 23:06:36 2019
######################################################################
TEMPLATE = app
TARGET = vlc
INCLUDEPATH += .
#PKG_CONFIG = PKG_CONFIG_PATH=$$(QTDIR)/lib/pkgconfig pkg-config
#CONFIG += link_pkgconfig
#PKGCONFIG += Qt5Core
View gist:fd92d248301bf433e1334303b3cd422e
-- logger module started --
main debug: VLC media player - 4.0.0-dev Otto Chriek
main debug: Copyright © 1996-2019 the VideoLAN team
main debug: revision 4.0.0-dev-6786-gace7fd111f
main debug: configured with ./configure
main debug: searching plug-in modules
main debug: loading plugins cache file /home/rohan/Documents/VLC-Development/vlc/modules/plugins/plugins.dat
main warning: cannot read /home/rohan/Documents/VLC-Development/vlc/modules/plugins/plugins.dat: No such file or directory
main debug: recursively browsing `/home/rohan/Documents/VLC-Development/vlc/modules/plugins'
main debug: loading plugins cache file /home/rohan/Documents/VLC-Development/vlc/modules/plugins.dat
View gist:5c40a0b4ed6a94a7671b846b4f34fa26
PASS: test_libvlc_core
PASS: test_libvlc_equalizer
PASS: test_libvlc_media
PASS: test_libvlc_media_list
PASS: test_libvlc_media_player
PASS: test_libvlc_media_discoverer
PASS: test_libvlc_renderer_discoverer
PASS: test_libvlc_slaves
PASS: test_src_config_chain
PASS: test_src_misc_variables