Skip to content

Instantly share code, notes, and snippets.

View limkokhole's full-sized avatar
🌴
On vacation

林果皞 limkokhole

🌴
On vacation
View GitHub Profile
@leommoore
leommoore / dns_basics.md
Last active January 30, 2021 03:34
DNS Basics

#DNS Basics Domain names are a core feature of the internet. It is simply a mechanism to give a friendly name to remove the need to use ip addresses directly. It also has a number of advantages, such as:

  1. It allows you to have more than one domain name pointing at the same ip address (ie same website).
  2. It allows you to host more than one website on a specific ip address (ie shared hosting, the website shown in the one associated with the domain name)
Record Type
@extralam
extralam / Root.java
Last active July 31, 2018 09:57
Check Root or not
/**
* @author Kevin Kowalewski
*
*/
public class Root {
private static String LOG_TAG = Root.class.getName();
public boolean isDeviceRooted() {
if (checkRootMethod1()){return true;}
@lecho
lecho / shadow.xml
Created September 7, 2013 07:01
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@carlos-jenkins
carlos-jenkins / app.py
Created February 10, 2014 20:03
Example to set to a Gtk application a custom theme.
# -*- coding:utf-8 -*-
#
# Copyright (C) 2013 Carlos Jenkins <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@MotionDesignStudio
MotionDesignStudio / ascii_movie_image_ver_1.py
Last active January 23, 2025 08:37
Python ASCII Video And ASCII Image Creator
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image
@L-P
L-P / exec-notify.c
Created March 11, 2014 14:52
Watch process creation.
/* exec-notify, so you can watch your acrobat reader or vim executing "bash -c"
* commands ;-)
* Requires some 2.6.x Linux kernel with proc connector enabled.
*
* $ cc -Wall -ansi -pedantic -std=c99 exec-notify.c
*
* (C) 2007-2010 Sebastian Krahmer <[email protected]> original netlink handling
* stolen from an proc-connector example, copyright folows:
*/
/*
@leepro
leepro / bytes.py
Created March 21, 2014 19:43
Human readable bytes conversions
## {{{ http://code.activestate.com/recipes/578019/ (r15)
#!/usr/bin/env python
"""
Bytes-to-human / human-to-bytes converter.
Based on: http://goo.gl/kTQMs
Working with Python 2.x and 3.x.
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com>
License: MIT
@rbonvall
rbonvall / redirect.py
Created April 4, 2014 20:36
Redirect both stdin and stdout of a process to a PyQt text edit.
from PyQt4 import QtGui, QtCore, uic
def p(x):
print x
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QWidget.__init__(self)
uic.loadUi('redirect.ui', self)
@mike820324
mike820324 / SystemCallHooking.c
Created June 27, 2014 18:43
An example of Hooking Linux System Call
#include <linux/module.h>
#include <linux/printk.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <asm/unistd.h>
#include <asm/pgtable_types.h>
#include <linux/highmem.h>
#include "hook_function_ptr.h"
@luftreich
luftreich / AML8726-MX-MBOX.lst
Created August 15, 2014 10:04
AML8726-MX-MBOX-REPO-DOC
android_MX/aml_resource/doc/
├── develop_doc
│   ├── hardware
│   │   ├── AML8726-MX DDR3 Layout Guide V1.3.pdf
│   │   ├── AML8726-MX MBOX QPL (4.2.2) 20130605.pdf
│   │   ├── AML8726-MX MID Layout Checklist v1.4.xls
│   │   ├── AML8726-MX MID Layout Guide V1.0.pdf
│   │   ├── AML8726-MX MID QPL (4.1.1) 20130605.pdf
│   │   ├── AML8726-MX MID QPL (4.2.2) 20130605.pdf
│   │   └── AML8726-MXS MXL DDR3_Layout_Guide V0.3.pdf