Skip to content

Instantly share code, notes, and snippets.

* pull to latest
* vagrant up
* git checkout -b rls2009_lts origin/rls2009_lts
* snergster/csit-sut:latest
* patch VppConfigGenerator.py
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py
index 68a4e22e6..8a6ea9ff7 100644
--- a/resources/libraries/python/VppConfigGenerator.py
+++ b/resources/libraries/python/VppConfigGenerator.py
@@ -457,8 +457,9 @@ class VppConfigGenerator:
@blue119
blue119 / ubuntu-cloud-virtualbox.sh
Created June 2, 2020 06:50 — forked from smoser/ubuntu-cloud-virtualbox.sh
example of using Ubuntu cloud images with virtualbox
## Install necessary packages
$ sudo apt-get install virtualbox-ose qemu-utils genisoimage cloud-utils
## get kvm unloaded so virtualbox can load
$ sudo modprobe -r kvm_amd kvm_intel
$ sudo service virtualbox stop
$ sudo service virtualbox start
## URL to most recent cloud image of 12.04
$ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release"
{
"username": "admin",
"masterserver_module": true,
"external_ipVersion": "ipv4",
"default_gateway": "192.168.122.1",
"cluster_ip": "",
"log_adapter_cfg": "",
"cluster_password_src": "admin!23",
"external_netmask": "255.255.255.0",
"modelCategory": "single",
@blue119
blue119 / gist:a9da0ae4ef07fb01b096
Created May 6, 2014 13:02
tw_apple_daily.recipe
__license__ = 'MIT'
# __copyright__ = '2013, Yao-Po Wang <blue119@gmail.com>'
'''
Profile to TW Apple Daily
'''
import re
from calibre.web.feeds.news import BasicNewsRecipe
class AppleDailyTaiwan(BasicNewsRecipe):
title = u'蘋果日報 (台灣)'
[ 2%] Automoc for target chewing-editor
Generating moc_UserphraseModel.cpp
Generating moc_UserphraseSortFilterProxyModel.cpp
Generating moc_AddNewPhraseDialog.cpp
Generating moc_ChewingEditor.cpp
Generating moc_Notification.cpp
Generating moc_UserphraseView.cpp
[ 2%] Built target chewing-editor_automoc
[ 4%] Automoc for target util
[ 4%] Built target util_automoc
$ sudo fdisk -l /dev/sda
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
@blue119
blue119 / gist:6751897
Created September 29, 2013 11:57
If we would like to implement chewing_zuin_String by chewing_bopomofo_String, there is a issue that is we have to recount how many "zuin_count" of the return string. even thought we got it this tiime, you know the length of UTF8 is a range of 1 to 4. so we hard to re-count correctly later. my personally suggestion is implement chewing_bopomofo_S…
CHEWING_API char *chewing_bopomofo_String( ChewingContext *ctx)
{
char *s;
int i;
s = (char*) calloc(
1 + ZUIN_SIZE,
sizeof(ctx->output->zuinBuf[ 0 ].s) );
@blue119
blue119 / tw_oid.txt
Last active December 22, 2015 13:59
tw gov's oid
test
@blue119
blue119 / gist:6482612
Created September 8, 2013 07:15
test
test
@blue119
blue119 / gist:6261510
Created August 18, 2013 12:53
kuansim error
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Berkshelf] Updating Vagrant's berkshelf: '/home/blue119/.berkshelf/default/vagrant/berkshelf-20130818-20875-187caic-default'
[Berkshelf] Using postgresql (3.0.2)
[Berkshelf] Using git (2.5.2)
[Berkshelf] Using runit (1.1.6)
[Berkshelf] Using python (1.3.6)
[Berkshelf] Using pgrest (0.0.1) at '../pgrest'