Skip to content

Instantly share code, notes, and snippets.

View anatol's full-sized avatar
💭
Жыве Беларусь!

Anatol Pomozov anatol

💭
Жыве Беларусь!
View GitHub Profile
@anatol
anatol / build.rb
Created November 29, 2011 02:01
build tup PPA
#!/usr/bin/ruby
# directory git should contain 2 branches: origin/master and debian
system("rm -rf debian && mkdir debian")
Dir.chdir('git')
system('git remote update && git reset --hard origin/master')
version = `git describe`.chomp
/*
* CVE-2014-0196: Linux kernel <= v3.15-rc4: raw mode PTY local echo race
* condition
*
* Slightly-less-than-POC privilege escalation exploit
* For kernels >= v3.14-rc1
*
* Matthew Daley <mattd@bugfuzz.com>
*
* Usage:
@anatol
anatol / gist:4bd8ba61b240261c3573
Created September 14, 2014 03:24
Checkpatch bash function
function checkpatch {
dir=$(mktemp -d)
git format-patch @{u} -q -o $dir
./scripts/checkpatch.pl --summary-file -q $dir/*
rm -rf $dir
}
@anatol
anatol / update_kernel.rb
Last active August 29, 2015 14:06
Build and update ChromeOS kernel
#!/usr/bin/ruby
require 'fileutils'
REMOTE_ADDR = ARGV[0] || 'ryu'
SRC_DIR = File.expand_path(File.dirname(__FILE__))
WORK_DIR = SRC_DIR + '/work'
KERNEL_FLAGS = 'ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-'
@anatol
anatol / config.txt
Last active August 5, 2019 19:26
Building ChromeOS kernel without chroot
earlyprintk=ttyS0,115200n8
console=tty1
console=ttyS0,115200n8
loglevel=7
init=/sbin/init
cros_secure
oops=panic
panic=-1
root=PARTUUID=%U/PARTNROFF=1
rootwait
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a07dbc..99ad5d6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,9 +23,9 @@ IF (NOT GTK_FOUND)
MESSAGE(FATAL_ERROR "You don't seem to have gtk >= 3.0 development libraries installed...")
ENDIF (NOT GTK_FOUND)
-pkg_check_modules (VTE REQUIRED vte-2.90)
+pkg_check_modules (VTE REQUIRED vte-2.91)
# This image was built using git revision 1e79fde0688cd234b3b3795f32547c02dc7565bc
CONFIG_LOCALVERSION=""
CONFIG_CBFS_PREFIX="fallback"
CONFIG_ALT_CBFS_LOAD_PAYLOAD=y
CONFIG_COMPILER_GCC=y
CONFIG_COMPRESS_RAMSTAGE=y
CONFIG_INCLUDE_CONFIG_FILE=y
CONFIG_DYNAMIC_CBMEM=y
CONFIG_COLLECT_TIMESTAMPS=y
CONFIG_USE_BLOBS=y
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.18.2-2 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
/* Generated by glib-mkenums.rb ($Id$) */
#include "glib-enum-types.h"
#include <glib-object.h>
/* enumerations from "/usr/include/glib-2.0/glib/gutils.h" */
GType
/* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of