Linux- to decode base64 text.
- September 22nd, 2008
- Write comment
base64 -d inputfilename > outputfilename
base64 -d inputfilename > outputfilename
The dmidecode utility will display the SMBIOS (System Management BIOS) or the DMI (Desktop Management Interface) table. It can be very useful to determine your current hardware and other good information.
To display type options:
# dmidecode -t
Type number or keyword expected
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
Here is an example:
# dmidecode -t processor
# dmidecode 2.9
SMBIOS 2.3 present.
Handle 0x0400, DMI type 4, 35 bytes
Processor Information
Socket Designation: Proc_1
Type: Central Processor
Family: Pentium 4
Manufacturer: Intel
ID: 29 0F 00 00 FF FB EB BF
Signature: Type 0, Family 15, Model 2, Stepping 9
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (Fast floating-point save and restore)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Hyper-threading technology)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Not Specified
Voltage: 1.5 V
External Clock: 533 MHz
Max Speed: 3200 MHz
Current Speed: 2800 MHz
Status: Populated, Enabled
Upgrade: ZIF Socket
L1 Cache Handle: 0x0700
L2 Cache Handle: 0x0701
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Handle 0x0401, DMI type 4, 35 bytes
Processor Information
Socket Designation: Proc_2
Type: Central Processor
Family: Pentium 4
Manufacturer: Intel
ID: 00 00 00 00 00 00 00 00
Signature: Type 0, Family 0, Model 0, Stepping 0
Flags: None
Version: Not Specified
Voltage: 1.5 V
External Clock: 533 MHz
Max Speed: 3200 MHz
Current Speed: Unknown
Status: Unpopulated
Upgrade: ZIF Socket
L1 Cache Handle: 0x0703
L2 Cache Handle: 0x0704
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
To page up or down through the list of messages in Mail on a MacBook Pro, hold down the fn and control keys and hit the up or down arrow depending which way you want to go in the list. Note: this does not select them, but at least allows you to scroll through them quickly.
This has been one of the most frustrating problems I have had using the MacBook Pro. I get a lot of mail that just need to scan and delete. It would be nice if I knew how to select them too. In thunderbird, you just use the fn key and the arrows to page down/up. If you use fn and shift, this will also select them. I guess I will have to use thunderbird, if I cannot find a solution.
I have many mail accounts, and I like the way Mail put the Inbox for all of them up top. It makes it easy to get to the unread messages. I would like to try to use Mail, but I need to be able to select too.
time -p dd if=/dev/sda5 of=/dev/null bs=1024k count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 25.2325 seconds, 42.6 MB/s
real 25.26
user 0.00
sys 1.82
This transferred 1 gigabyte of data in 42.g megabytes per second.
formail -Y -s sendmail -odq username < /var/spool/mail/username
sendmail -v -qRnewaddress
For example:
formail -Y -s sendmail -odq james < /var/spool/mail/james
sendmail -v -qRjames@newmailbox.com
Source: http://www.ale.org/archive/ale/ale-2005-05/msg00214.html
For the whole file try:
Goto to line one: 1G
Sort from current line to end of file: !Gsort
Or if you want to think of it as one command: 1G!Gsort
Sort a range:
Move Cursor to last line to sort
mark the line with mark ‘a’: ma
move cursor to first line to sort
sort from current line to mark ‘a’: !’asort
Now what does the special chars above mean.
‘!’ is the vi filter command, it is followed by a movement command
that says what is being filtered. That is followed by the actual
filter cmd. The filter cmd can be any executable. In this case sort.
Since vi does not know how long the filter command name is, you have
to hit carriage return to initiate the filter.
G by itself means go to the end of the file
ma means set mark a to this line. (marks a-z exist)
‘a means goto mark a.
egrep ‘[[:digit:]]{1,3}’\.'[[:digit:]]{1,3}’\.'[[:digit:]]{1,3}’\.'[[:digit:]]{1,3}’ filename
egrep “[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}” filename
Note: this will not exclude invalid IP addresses such as 500.500.500.500, but it is something to start with.
If doing a copy an paste, the single quotes need to be typed manually until I figure out how enter them correctly.
Open a command prompt using “Run as administrator” (Right mouse click on “Command Prompt” in Accessories.).
Enter:
netsh firewall set icmpsetting 8 enable
In Windows 7, this command has been deprecated and replaced with the following:
netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow
In Windows Server 2012 R2, to allow RDP access:
netsh advfirewall firewall add rule name=”RDP Allowed” protocol=tcp localport=3389 dir=in action=allow
Make sure you no other yum update service/process running.
Proxy variable without authentication:
export http_proxy=”http://proxyserver:port”
Proxy variable with authentication:
export http_proxy=”http://username:password@proxyserver:port”
Configure VNC to run at startup
vi /etc/sysconfig/vncservers
…
VNCSERVERS=”1:username”
VNCSERVERARGS[1]=”-geometry 1024×768″
…
Use ntsysv to configure vncserver to run at startup.
Configure vnc session to use GNOME
su – username # if necessary
cd .vnc
cp -p xstartup xstartup.orig
vi xstartup
###Begin file###
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
startx &
###End file###
Note: Make sure there is not blank line after the startx line.
service vncserver restart
Use your vnc client to connect to hostname:1.