Skip to content

Instantly share code, notes, and snippets.

@eltonvs
eltonvs / arch_installation.md
Last active Jul 19, 2021
Arch Linux step to step installation guide
View arch_installation.md

Arch Linux Installation Guide

This guide will show step-by-step how to Install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre installation
    • Set Keyboard Layout
    • Check boot mode
    • Update System Clock
@VivaCaligula
VivaCaligula / ArchInstallSetup.md
Last active May 7, 2021
A quick install guide for Arch.
View ArchInstallSetup.md

First time Arch installation and setup.

This should only take 10-20 minutes.

This entire process can be circumvented by installing a graphical variant of Arch like Manjaro or Antergos.


PRE-INSTALL

DL ISO, Burn/Mount, option "Boot Arch Linux (x86_64)": https://www.archlinux.org/download/ 
@takeshixx
takeshixx / ubuntu-xenial-armfh-qemu.md
Last active Jul 17, 2021
Running Ubuntu 16.04.1 armhf on Qemu
View ubuntu-xenial-armfh-qemu.md

Running Ubuntu 16.04.1 armhf on Qemu

This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.

The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.

The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb and 1G on versatile-a9/versatile-a15). It also supports virtio disks whereas versatile-a9/versatile-a15 only support SD cards via the -sd argument.

Get netboot files

@gregf
gregf / radar.sh
Last active Aug 29, 2015 — forked from lubosz/weather.sh
Weather radar in your terminal
View radar.sh
#!/bin/bash
set -e
SCRIPT_NAME=$(basename $0)
W3MIMGDISPLAY="/usr/lib/w3m/w3mimgdisplay"
FONTH=14 # Size of one terminal row
FONTW=8 # Size of one terminal column
DOWNLOAD_DIR=$(mktemp -d)
DATE=$(date +"%m%d%y%H%M")
View freebsd_on_mbp.md

FreeBSD on a MacBook Pro

Since 2008 or 2009 I work on Apple hardware and OS: back then I grew tired of Linux desktop (which is going to be MASSIVE NEXT YEAR, at least since 2001), and switched to something that Just Works. Six years later, it less and less Just Works, started turning into spyware and nagware, and doesn't need much less maintenance than Linux desktop — at least for my work, which is system administration and software development, probably it is better for the mythical End User person. Work needed to get software I need running is not less obscure than work I'd need to do on Linux or othe Unix-like system. I am finding myself turning away from GUI programs that I used to appreciate, and most of the time I use OSX to just run a terminal, Firefox, and Emacs. GUI that used to be nice and unintrusive, got annoying. Either I came full circle in the last 15 years of my computer usage, or the OSX experience degraded in last 5 years. Again, this is from a sysadmin/developer ki

@SaltwaterC
SaltwaterC / README.md
Last active Jan 1, 2021
OpenWrt support for Netgear WNR1000v2
View README.md

Install

As usual, use it at your own risk. I am not to be held responsible for your actions.

Supported devices: WNR1000v2 (tested by me), WNR1000v2-VC (provided by Comcast for free; tested by Douglas Fraser)

Notice: Upgrade WNR1000v2 to the latest factory firmware: 1.1.2.58. Otherwise, the power LED may not behave properly.

You need to place the device into failsafe mode. For booting into failsafe mode, you need to power up the device while holding the reset button with a pin. The power LED should have an amber colour. Hold the button until it is starting to flash green. It starts to flash green after it flashes the amber LED for six times. After that, the device is in failsafe mode, accepting a firmware via its TFTP server. The device should respond to pings at 192.168.1.1, although the responses may be malformed.

@Thermionix
Thermionix / wine-1.7.24-d3dadapter.patch
Created Aug 11, 2014
wine-1.7.24 d3dadapter patch
View wine-1.7.24-d3dadapter.patch
diff --git a/configure b/configure
index 40cadd2..6f563de 100755
--- a/configure
+++ b/configure
@@ -821,6 +821,7 @@ with_netapi
with_openal
with_opencl
with_opengl
+with_d3dadapter
with_osmesa
@peterc
peterc / cable3.c
Created Jan 4, 2014
running cable3.c through gcc -E - see http://ioccc.org/2013/cable3/hint.html for original authors
View cable3.c
unsigned char t,e,l[80186],*E,m,u,L,a,T,o,r[1<<21],X,*Y,b,Q=0,R=0;
unsigned short*i,M,p,q=3;
unsigned*localtime(),f,S,kb=0,h,W,U,c,g,d,V,A;
N,O,P=983040,j[5];
SDL_Surface*k=0;
K(o) {
return P+(L?2*o:2*o+o/4&7);
}
D(o) {
return r[*(unsigned*)&E[259+4*o]+O];
View hellorun.min.js
function bind(a, b) {
return function () {
b.apply(a, arguments)
}
}
function loadJSON(a, b) {
var c = new XMLHttpRequest;
c.open("GET", a), c.onreadystatechange = function () {
4 == c.readyState && b.call(null, JSON.parse(c.responseText))
@oumu
oumu / soundcloud-mp3.js
Created Mar 31, 2012 — forked from rsvp/soundcloud-mp3.js
SoundCloud bookmarklet that generates link to download MP3
View soundcloud-mp3.js
/**
2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987
**/
(function(document) {
var link = document.createElement("a"),
span = document.createElement("span"),
slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1],
mp3 = document.querySelector("em").innerText + ".mp3";