Skip to content

Instantly share code, notes, and snippets.

View Alex-ZL's full-sized avatar
🎯
Focusing

AlsIchKann Alex-ZL

🎯
Focusing
  • Trip.com
  • ShangHai
View GitHub Profile
@Alex-ZL
Alex-ZL / _INSTALL.md
Last active August 29, 2015 14:27 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@Alex-ZL
Alex-ZL / guess.c
Created June 25, 2014 01:29
Just a C exercise, but failed to pass: http://pat.zju.edu.cn/submissions/488963
#include<stdio.h>
int main(){
int guess, answer, limit, count=1;
scanf("%d %d", &answer, &limit);
while (1){
scanf("%d", &guess);
if (guess<0 || count>limit){
printf("Game Over\n");
break;
#!/bin/sh
wget http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/Core-current.iso
wget http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/distribution_files/core64.gz
wget http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/distribution_files/vmlinuz64
# extract files
7z x Core-current.iso -oCore-current
rm -rf Core-current/[BOOT]
chmod 744 Core-current/boot/isolinux/isolinux.bin