Skip to content

Instantly share code, notes, and snippets.

View sndnvaps's full-sized avatar
💭
I may be slow to respond.

Samuel Freeman sndnvaps

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
cd ~/roms/cyanogenmod/out/target/product/i9300/
yafc <<**
open ftp://dschense:uDRMO4mgC2@androidfilehost.com:21/
cd Roms/CM
put -f -r ~/roms/cyanogenmod/out/target/product/i9300/cm-*
close
@sndnvaps
sndnvaps / msm8939-mtp-ramoops.dtsi
Created November 21, 2016 02:12
nubia_nx511j ram_console setup dtsi
/* Copyright (c) 2016, The Mokee Open Source, All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
/*
* Overclocking driver for Qualcomm MSM8960 (Krait) devices, such as the
* HTC One XL (AT&T/Rogers/Asia) and HTC One S. This method is recommended for
* rooted devices without kernel source or a locked bootloader.
*
* Successfully compiled against Code Aurora's ics_chocolate branch MSM kernel,
* but requires a little tweaking to Module.symvers before it will successfully
* load.
*
* Please encourage HTC and AT&T to allow the AT&T HTC One X's bootloader to be
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <map>
using namespace std;
class table {
private:
string number;
@sndnvaps
sndnvaps / Test.c
Created April 28, 2013 14:55 — forked from Bavilo/Test
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <linux/input.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/reboot.h>
@sndnvaps
sndnvaps / tty1_xwindows.markdown
Last active December 15, 2015 15:09
translate from virtual terminal one to vritual terminal two (tty1 to tty2 ) and translate from virtual terminal to Xwindows Make virtual terminal support utf8 chinese

正文:

Ctrl+Alt+F1 进入tty1,命令行模式,第一个虚拟终端

Ctrl+Alt+F2 进入tty2

Ctrl+Alt+F3 进入tty3

Ctrl+Alt+F4 进入tty4

@sndnvaps
sndnvaps / timetable_map.go
Last active December 15, 2015 12:48
write timetable with golang
package main
import (
"fmt"
"os"
"strconv"
)
//tt := make(map[int] Timetable)

标题:

Go语言写Web应用程序{修改版}

go语言写Web应用程序,涵盖内容:为载入和保存方法创建一个数据结构体,引用http包来创建一个web应用,引用template包来处理HTML模板,引用regexp包来验证用户的输入,引用闭包操作。

介绍

涵盖内容:

package main
import (
"runtime"
"fmt"
)
func test(c chan bool, b bool) {
x := 0.0
for i := 0.0 ; i < 10000000 ; i++ {
@sndnvaps
sndnvaps / bigDigit.go
Created December 3, 2012 13:55
bigDigist with bar
package main
import (
"fmt"
"log"
"os"
"path/filepath"
)
var bigDigits = [][]string{