A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
#!/bin/bash | |
mac="56:66:6c:03:ef:dc" | |
newmac=$(python -c "mac = \"${mac}\"; newmac=mac[0] + mac[16] + mac[2:]; print newmac") | |
echo ${newmac} |
#!/bin/bash | |
cpunum=$(cat /proc/cpuinfo | grep 'processor' | wc -l) | |
for i in $(seq ${cpunum}) | |
do | |
dd if=/dev/zero of=/dev/null & | |
done |
/** | |
* Created by diabloneo on 10/1/14. | |
*/ | |
import java.io.IOException; | |
import java.util.Scanner; | |
import java.nio.file.Paths; | |
public class Hello { |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
count = 0 | |
def can_place(board, n, row, col): | |
if any([board[i][col] for i in range(row)] | |
+ [board[row-i][col-i] for i in range(1, row+1) if col >= i] | |
+ [board[row-i][col+i] for i in range(1, row+1) if (col+i) < n]): |
[[y*x for x in range(1, y+1)] for y in range(1, 10)] |
#!/bin/bash | |
ROOTDIR=~/ruijie | |
SESSION=main | |
NONAME="bash" | |
window_list="tftp $NONAME ipython $NONAME" | |
tmux has-session -t $SESSION | |
if [ $? -eq 0 ]; then | |
echo "Session $SESSION already exists. Attacing." |
#!/usr/bin/env python | |
import hashlib | |
import base64 | |
import binascii | |
def main(): | |
pktstr = raw_input() | |
m = hashlib.md5() | |
m.update(base64.b16decode(pktstr.replace(' ', '').upper())) |
package main | |
import ( | |
"fmt" | |
"os/exec" | |
"time" | |
) | |
func main() { | |
cmd := exec.Command("./pause1min") |
package main | |
import ( | |
"fmt" | |
"github.com/bitly/go-simplejson" | |
) | |
func testJsonArray1(pgStatsJson []*simplejson.Json) { | |
fmt.Println("testJsonArray1") | |
j := simplejson.New() |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes: