Skip to content

Instantly share code, notes, and snippets.

View jukbot's full-sized avatar
🏠
Working from home

Juk - a search builder jukbot

🏠
Working from home
  • CalCal
  • Bangkok, Thailand
  • X @jukbot
View GitHub Profile
@jukbot
jukbot / kmuttEval.js
Last active April 10, 2017 16:54
KMUTT LECTURER EVALUATE SCRIPT v2 (2015-2017)
How to use this Evaluate script v2
=======================================================================
1. visit http://apollo.kmutt.ac.th/newassess-std/default.aspx
2. select registered courses then enter the evaluation page.
3. right click at the browser > Inspect element > Console
4. select the script below, copy and paste it in command box.
5. enter and done!!
(Note: type "allow parsing" for first use in Firefox browser)
======================================================================
@jukbot
jukbot / sanfrancisco-font.css
Created August 7, 2016 18:38 — forked from bivainis/sanfrancisco-font.css
San Francisco Web Font
/**
* http://applemusic.tumblr.com/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2");
}
@jukbot
jukbot / student_log.txt
Created August 3, 2016 19:22
unsort student log file
2010 Mr.Steve Jobs
2008 Mr.Bill Gates
2015 Mr.Lary Pages
2012 Mr.Mark Zuckerburg
2005 Mr.Joe Doe
2011 Mr.Elon Musk
2014 Mr.John Smith
2010 Mr.Steve H.
2011 Ms.Jane Smith
@jukbot
jukbot / student_log_sort.txt
Created August 3, 2016 19:22
sorted student log file
2015 Mr.Lary Pages
2014 Mr.John Smith
2012 Mr.Mark Zuckerburg
2011 Ms.Jane Smith
2011 Mr.Elon Musk
2010 Mr.Steve Jobs
2010 Mr.Steve H.
2008 Mr.Bill Gates
2005 Mr.Joe Doe
@jukbot
jukbot / StudentLog.java
Last active August 3, 2016 19:21
Example print a sort student log from unsort student log file in java
import java.io.File;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.Arrays;
class StudentLog {
public static void main(String[] args) throws Exception {
File input = new File("student_log.txt");
@jukbot
jukbot / ScorePlot.java
Created August 3, 2016 19:17
Example Print ScorePlot in Java
import java.io.File;
import java.util.Scanner;
public class ScorePlot {
public static void main(String[] args) throws Exception {
// read file
File student = new File("student.txt");
Scanner in = new Scanner(student);
@jukbot
jukbot / 404.html
Created August 3, 2016 19:14
Sample 404 not found page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 Not found</title>
<style type="text/css">
body {
background-color: #FFF;
}
svg {
@jukbot
jukbot / JukOS grub.cfg
Last active March 23, 2016 18:01
JukOS Grub config
# Begin /boot/grub/grub.cfg
# Grub2 Configulation File for JukOS
GRUB_INIT_TUNE="480 440 4 440 4 440 4 349 3 523 1 440 4 349 3 523 1 440 8 659 4 659 4 659 4 698 3 523 1 415 4 349 3 523 1 440 8"
menuentry "JukOS 1.1 (Build 2016.03.07) , Linux 4.4.2-lfs-7.9" {
insmod ext2
set root=(hd0,3) # Boot partition directory
# Linux kernel root directory
echo 'Loading Linux kernel 4.4.2 ...'
@jukbot
jukbot / 5.3 General Compilation Instructions
Last active March 17, 2016 17:51
Linux from scratch guide
First!! Recommended to log in as root in new terminal (sudo su) then
install the following as root first (sudo -s) important for temp environment
sudo apt-get update
sudo apt-get upgrade (!! For permanant install linux only NOT FOR LIVE CD)
If you're using ubuntu / xubuntu you must download automake 1.15 install .deb to your system
https://launchpad.net/ubuntu/wily/amd64/automake/1:1.15-1ubuntu1
sudo apt-get install bison
sudo apt-get install gawk
@jukbot
jukbot / Linux Kernel 4.2.x - 4.4.x .config
Last active October 23, 2023 20:27
This is Juk's linux kernel config file for vmware
# All options are required unless noted as "Optional" or under a # Begin and # End block, which is also noted as "Optional" or "Hardware Specific"
# It is important that they are selected as built-in or the kernel might fail to correctly detect the partitions and/or filesystems.
# It is a good idea to run "make defconfig" first
Device Drivers --->
Generic Driver Options --->
() path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs