Skip to content

Instantly share code, notes, and snippets.

View Lyuu17's full-sized avatar
🙃
tired and sleepy

lucx ☆ Lyuu17

🙃
tired and sleepy
View GitHub Profile
package org.example;
import org.w3c.dom.ranges.Range;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Lyuu17
Lyuu17 / AdventDay4.java
Created March 27, 2023 07:31
advent of code day 4 2022
package org.example;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class AdventDay4 {
public static boolean checkAssignmentPair(String str) {
String pair[] = str.split(",");
@Lyuu17
Lyuu17 / adventday3.java
Created March 27, 2023 07:09
advent of code day 3 2022
package org.example;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
public class AdventDay3 {
public static int getLowerCasePriority(char c) {
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.84-TeamRedStar-gbd06350d853-dirty (lyuu@lyuu-desktop) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #4 SMP PREEMPT Wed Mar 13 22:31:48 CET 2019
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] Machine: Athene_13MP
[ 0.000000] cma: Found modem_region@0, memory base 0x0000000086c00000, size 86 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found reloc_region@0, memory base 0x000000008c200000, size 24 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found other_ext_region@0, memory base 0x0000000084f00000, size 25 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found venus_region@0, memory base 0x0000000000000000, size 5 MiB, limit 0x0000000090000000
--------- beginning of main
09-23 08:58:10.531 333 333 W auditd : type=2000 audit(0.0:1): initialized
09-23 08:58:13.646 333 333 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
09-23 08:58:13.660 1 1 I init : type=1400 audit(0.0:3): avc: denied { noatsecure } for scontext=u:r:kernel:s0 tcontext=u:r:init:s0 tclass=process permissive=1
09-23 08:58:13.670 1 1 I init : type=1400 audit(0.0:4): avc: denied { read } for name="compatible" dev="proc" ino=4026541190 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
09-23 08:58:13.670 1 1 I init : type=1400 audit(0.0:5): avc: denied { open } for path="/proc/device-tree/firmware/android/compatible" dev="proc" ino=4026541190 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
09-23 08:58:13.670 1 1 I init : type=1400 audit(0.0:6): avc: denied { getattr } for path="/proc/device-tree/firmware/android/compatible" dev="proc" ino=4026541190 sconte
@Lyuu17
Lyuu17 / ssh_client.py
Created September 8, 2016 11:50 — forked from ghawkgu/ssh_client.py
Python ssh client sample
#!/usr/bin/env python
import paramiko
hostname = 'localhost'
port = 22
username = 'foo'
password = 'xxxYYYxxx'
if __name__ == "__main__":