Skip to content

Instantly share code, notes, and snippets.

How to create a 4MB FreeDOS boot disk for eg, doing a motherboard bios upgrade.
Originally from http://www.linuxinsight.com/how-to-flash-motherboard-bios-from-linux-no-dos-windows-no-floppy-drive.html
The following is a brief outline of how I created a 4MB CD boot image to update the bios on a motherboard I have been considering buying.
I do not have this motherboard, but I have tested the bootable CD up to the point of actually flashing the bios.
FWIW, my computer runs PATA / IDE HDs and optical drives. Not SATA.
Adjust accordingly to your distro, hardware, etc.
I'm human, and make typos on occasion. So double check your input.
@mlafeldt
mlafeldt / scp_demo.py
Created February 24, 2011 09:09
[Python] paramiko examples
#!/usr/bin/env python
import sys, paramiko
if len(sys.argv) < 5:
print "args missing"
sys.exit(1)
hostname = sys.argv[1]
password = sys.argv[2]
@frostney
frostney / Baking.js
Created May 4, 2011 03:23
This is a code snippet which shows how to embed JavaScript (using BESEN, http://besen.sourceforge.net) in FreePascal/Delphi applications. I used FPC 2.5.1, compiled using "fpc -Mdelphi FPCScript.dpr" and tested under Ubuntu Linux 10.10 (32-bit).
//importScript("Test.js"); // Imports & executes Test.js
// Wohooo, JavaScript inside of JavaScript. That's meta.
execute("(function() { print('Hello world') })();");
print("--- Let's have a cake ---");
var myCake = new Cake();
myCake.Info();
print("--- I'm hungry ---");
@wtsnz
wtsnz / ExternalInterface.cpp
Created September 11, 2011 22:37
HaXe NME Vibrate for WebOS
// --- vibrateDevice---------------
value nme_vibrate_device()
{
#ifdef WEBOS
VibrateDevice();
return alloc_null(true);
#enif
}
DEFINE_PRIM(nme_vibrate_device,0);
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@arbo77
arbo77 / MyFrame.java
Created August 10, 2012 23:38
Simple Java GUI example
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class MyFrame extends JFrame {
private JButton btnTutup = new JButton("Tutup");
private JButton btnTambah = new JButton("Tambah");
private JTextField txtA = new JTextField();
@arbo77
arbo77 / Combo.java
Created August 10, 2012 23:50
Simple Java GUI example (ComboBox & ListBox)
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
class Combo extends JFrame{
private JLabel lbl1 = new JLabel("Bilangan : ");
private JTextField tBil = new JTextField();
private JButton btnTambah = new JButton("Tambah");
private DefaultComboBoxModel ganjil = new DefaultComboBoxModel();
@iamsilvio
iamsilvio / PdfFilePrinter.cs
Created October 20, 2012 22:46
Print PDFs with Adobe Acrobat Reader from c#
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Microsoft.Win32;
namespace skat.Printserver
{
/// <summary>
/// A wrapper around Adobe Acrobat Reader that helps to print PDF files.
@kuenishi
kuenishi / dvd.rst
Last active March 23, 2020 18:31
How to rip your dvd to backup

Howto

  1. install brasero (gnome automatically installs it)
  2. install libdvdcss
  3. start brasero
  4. install disk
  5. set region code