Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
/* please refer better example: https://github.com/dvdhrm/docs/tree/master/drm-howto/ */ | |
#define _XOPEN_SOURCE 600 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <xf86drm.h> |
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
body { | |
background-color: #272822; | |
} | |
div#cgit { | |
padding: 0em; | |
margin: 0em; | |
font-family: sans-serif; | |
font-size: 10pt; | |
color: white; |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
(source : http://injustfiveminutes.com/category/openldap) | |
How to fix “ldif_read_file: checksum error” | |
Posted on October 28, 2014 | |
15 | |
Well, in spite of you did read a banner saying “# AUTO-GENERATED FILE – DO NOT EDIT!! Use ldapmodify.” you ignored it and made some manual modifications in any of the LDIF files in /etc/ldap/slapd.d/. | |
Don’t worry it happened to me too :) When you need to quickly setup an openLDAP server for development it is pretty much easier to tweak these files although the recommended way is to use ldapmodify tool. But if you change the LDIF files in cn=config manually, their contents and checksums won’t match, which is not fatal, but is annoying when using tools such as slapcat: |
/* | |
* Demo of libpq epoll. | |
* Build: g++ libpq-epoll.cpp -o libpq-epoll -lpq | |
* Run: ./libpq-epoll | |
*/ | |
#include <arpa/inet.h> | |
#include <cstdlib> | |
#include <cstring> | |
#include <errno.h> |
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 | |
/* | |
* Copyright (c) 2012 Arvin Schnell <[email protected]> | |
* Copyright (c) 2012 Rob Clark <[email protected]> | |
* Copyright (c) 2017 Miouyouyou <Myy> <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
/* textbox: Abstraction for 2-dimensional text strings, with VT100 linedrawing support */ | |
/* Copyright (c) 2017 Joel Yliluoma - http://iki.fi/bisqwit/ */ | |
/* License: MIT */ | |
/* Requires a C++17 capable compiler and standard library. */ | |
struct textbox | |
{ |
# Adjust the following variables as necessary | |
REMOTE=origin | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
BATCH_SIZE=500 | |
# check if the branch exists on the remote | |
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
# if so, only push the commits that are not on the remote already | |
range=$REMOTE/$BRANCH..HEAD | |
else |