Skip to content

Instantly share code, notes, and snippets.

View sudhirkhanger's full-sized avatar
🎯
Focusing

Sudhir Singh Khanger sudhirkhanger

🎯
Focusing
View GitHub Profile
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
// system-monitor: Gnome shell extension displaying system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…
// Copyright (C) 2011 Florian Mounier aka paradoxxxzero
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
@sudhirkhanger
sudhirkhanger / gist:d58df8594e818922f8f6
Created May 24, 2015 10:04
yum shell remi to iuscommunity
[admin@CentOS ~]$ yum list installed | grep @remi
php.x86_64 5.4.41-1.el7.remi @remi
php-cli.x86_64 5.4.41-1.el7.remi @remi
php-common.x86_64 5.4.41-1.el7.remi @remi
php-gd.x86_64 5.4.41-1.el7.remi @remi
php-ldap.x86_64 5.4.41-1.el7.remi @remi
php-mbstring.x86_64 5.4.41-1.el7.remi @remi
php-mysql.x86_64 5.4.41-1.el7.remi @remi
php-pdo.x86_64 5.4.41-1.el7.remi @remi
php-process.x86_64 5.4.41-1.el7.remi @remi
yum list installed | grep @remi
php.x86_64 5.4.41-1.el7.remi @remi
php-cli.x86_64 5.4.41-1.el7.remi @remi
php-common.x86_64 5.4.41-1.el7.remi @remi
php-gd.x86_64 5.4.41-1.el7.remi @remi
php-ldap.x86_64 5.4.41-1.el7.remi @remi
php-mbstring.x86_64 5.4.41-1.el7.remi @remi
php-mysql.x86_64 5.4.41-1.el7.remi @remi
php-pdo.x86_64 5.4.41-1.el7.remi @remi
php-process.x86_64 5.4.41-1.el7.remi @remi
package com.sudhirkhanger.app.dialogsample;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
@sudhirkhanger
sudhirkhanger / codec
Created October 21, 2015 05:25
exhaustive codec list
amrnb
amrwb
faac
faad2
flac
lame
libdca
libmad
libmatroska
x264
@sudhirkhanger
sudhirkhanger / Autostart.sh
Created October 22, 2015 11:11 — forked from iiska/Autostart.sh
Using KWallet and ksshaskpass with ssh-agent
#! /bin/bash
# Put this in ~/.kde/Autostart/ssh-agent.sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add
$ journalctl -b -u bumblebeed
- Logs begin at Sat 2015-11-21 10:12:37 IST, end at Thu 2015-12-31 16:39:11 IST. --
Dec 31 11:52:42 fedora systemd[1]: Started Bumblebee C Daemon.
Dec 31 11:52:42 fedora systemd[1]: Starting Bumblebee C Daemon...
Dec 31 11:52:50 fedora bumblebeed[873]: [ 25.483712] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Dec 31 15:00:48 fedora systemd[1]: Stopping Bumblebee C Daemon...
Dec 31 15:00:48 fedora bumblebeed[873]: [ 8614.665182] [WARN]Received Terminated signal.
Dec 31 15:00:48 fedora systemd[1]: Started Bumblebee C Daemon.
Dec 31 15:00:48 fedora systemd[1]: Starting Bumblebee C Daemon...
Dec 31 15:00:48 fedora bumblebeed[27947]: [ 8614.691860] [INFO]/usr/sbin/bumblebeed 3.2.1 started
-- Logs begin at Sat 2015-11-21 10:12:37 IST, end at Thu 2015-12-31 16:40:06 IST. --
Dec 31 11:52:26 fedora kernel: Initializing cgroup subsys cpuset
Dec 31 11:52:26 fedora kernel: Initializing cgroup subsys cpu
Dec 31 11:52:26 fedora kernel: Initializing cgroup subsys cpuacct
Dec 31 11:52:26 fedora kernel: Linux version 4.2.8-300.fc23.x86_64 ([email protected]) (gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC) ) #1 SMP Tue Dec 15 16:49:06 UTC 2015
Dec 31 11:52:26 fedora kernel: Command line: BOOT_IMAGE=/vmlinuz-4.2.8-300.fc23.x86_64 root=UUID=5d19eaa8-9e95-4039-91c7-df9e0c01d451 ro nouveau.modeset=0 rd.driver.blacklist=nouveau rhgb quiet resume=UUID=eb832f45-b5e9-4557-b484-12d82401d640
Dec 31 11:52:26 fedora kernel: Disabled fast string operations
Dec 31 11:52:26 fedora kernel: x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100
Dec 31 11:52:26 fedora kernel: x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
Dec 31 11:52:26 fedora kernel: x86/fpu: Supporting
$ optirun glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: VirtualGL
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_swap_control,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
$ optirun glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: VirtualGL
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_swap_control,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,