This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os | |
import pygtk, gtk, gobject | |
import pygst | |
pygst.require("0.10") | |
import gst | |
import time | |
class GTK_Main: | |
def __init__(self): | |
window = gtk.Window(gtk.WINDOW_TOPLEVEL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root> show configuration | |
## Last commit: 2011-10-09 08:19:31 UTC by root | |
version 11.1R3.5; | |
system { | |
root-authentication { | |
encrypted-password "$1$dvnlnMG"; ## SECRET-DATA | |
} | |
name-server { | |
208.67.222.222; | |
208.67.220.220; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <gst/gst.h> | |
#include <gstreamer-0.10/gst/gstpad.h> | |
#include <gstreamer-0.10/gst/gstelement.h> | |
typedef struct | |
{ | |
const gchar *padname; | |
GstPad *target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
_temp="/tmp/answer.$$" | |
PN=`basename "$0"` | |
VER='0.31' | |
dialog 2>$_temp | |
DVER=`cat $_temp | head -1` | |
######################################## | |
### Progress/Tail/Verion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.neon" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="3" /> | |
<application android:label="@string/app_name"> | |
<activity android:name=".HelloNeon" | |
android:label="@string/app_name"> | |
<intent-filter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################## | |
# b) What Linux kernel and default stuff he got? | |
################################## | |
/ $ lspci | |
lspci: /sys/bus/pci/devices: No such file or directory | |
/ $ lsusb | |
Bus 001 Device 001: ID 1d6b:0002 | |
/ $ free | |
total used free shared buffers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git reset ... | |
fatal: ambiguous argument '...': unknown revision or path not in the working tree. | |
Use '--' to separate paths from revisions | |
$ gist reset | |
$ git add -A | |
$ git status -s | |
M my-plugin1 | |
M my-plugin2 | |
M my-plugin3 | |
M my-plugin4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Java is trying to execute this: sudo convert /tmp/testing.tiff /tmp/testing.jpg | |
2. | |
root@myhost:~# cat /etc/sudoers | |
Defaults env_reset | |
root ALL=(ALL:ALL) NOPASSWD: ALL | |
user ALL=NOPASSWD: ALL | |
%admin ALL=(ALL) ALL | |
%sudo ALL=(ALL:ALL) ALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- now nothing | |
# lsusb | |
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub | |
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
[ 11.455909] xhci_hcd 0000:04:00.0: irq 48 for MSI/MSI-X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@example ~]# lsusb | grep Canon | |
Bus 003 Device 021: ID 04a9:1909 Canon, Inc. | |
[root@example ~]# scanimage -x 100 -y 100 --format=tiff >/tmp/test.tiff | |
scanimage: no SANE devices found | |
[root@example ~]# |