Skip to content

Instantly share code, notes, and snippets.

View kholis's full-sized avatar

Nur Kholis M kholis

View GitHub Profile
#!/bin/bash
newfolder=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sed 's/\.[^.]*$//')
mkdir -p $newfolder
file-roller -e $newfolder $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
#include<stdio.h>
int main(int argc, char **argv)
{
printf("hello world");
return 0;
}
#!/bin/bash
newfolder=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sed 's/\.[^.]*$//')
mkdir -p $newfolder
file-roller -e $newfolder $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
base_color=normal=editnormal=,default:
base_color=normal=,default:editnormal=default,default:editwhitespace=,default
@kholis
kholis / grub.cfg
Created November 3, 2010 08:19
/boot/grub/grub.cfg in my external HDD
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
@kholis
kholis / gtkrc
Created December 17, 2010 06:53
Ambiance Maverick gtkrc
gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#F2F1F0\ntooltip_bg_color:#000000\nlink_color:#DD4814"
#gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16"
gtk-icon-sizes = "panel-menu=16,16:gtk-menu=16,16:gtk-button=16,16:gtk-small-toolbar=16,16:gtk-large-toolbar=16,16:gtk-dialog=32,32:gtk-dnd=32,32"
gtk-auto-mnemonics = 1
style "default" {
xthickness = 1
ythickness = 1
@kholis
kholis / .bashrc
Created December 17, 2010 07:40
.bashrc at home directory
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@kholis
kholis / xorg.conf
Created January 21, 2011 06:52
/etc/x11/xorg.conf ubuntu virtualbox to set screen resolution
Section "Device"
Identifier "Configured Video Device"
Driver "vboxvideo"
EndSection
Section "Monitor"
Identifier "Configured Monnitor"
EndSection
Section "Screen"
@kholis
kholis / grub.cfg
Created January 28, 2011 08:03
solaris 11 entry
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true