Skip to content

Instantly share code, notes, and snippets.

View kevr's full-sized avatar

Kevin Morris kevr

View GitHub Profile
Connecting to omega.ccsfcc.net:6697...
SSL Handshake intiated...
Connected.
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
[root@coders ~]# cat /usr/local/bin/mkuser
#!/usr/bin/env bash
if [ $# -lt 3 ]; then
echo "usage: $(basename $0) username \"Full Name\" user@email.tld"
exit 0
fi
tmp="$(pw useradd $1 -w random -o -c "${2}" -s /usr/local/bin/bash -d /usr/home/$1 -m)"
www_groups=$(IFS=' ' read -a arr <<< "$(groups www)"; echo "${arr[@]:1}" | sed 's/ /,/g')
function GetImage(){
if(jQuery('div.sm-lightbox-focused').length > 0)
{
jQuery('div.sm-lightbox-focused').addClass('.sm-lightbox-clean');
jQuery('div button.sm-lightbox-close').click();
}
var last = "";
jQuery('li.sm-tile-photo a div').each(function(i,e){
@kevr
kevr / Class.md
Last active January 31, 2017 06:42
Learn C++ classes

C++ Classes

Introduction

When writing classes in a programming language, we can think of them as a direct correlation to nouns in the English language. For example, I have a dog named Spirit. We want to represent Spirit in code, so we write a class to represent a dog.

class Dog
{
};
static void delay(unsigned long ms)
{
struct timespec tv;
memset(&tv, 0, sizeof(tv));
tv.tv_sec = 0;
tv.tv_nsec = 1000000L * ms;
nanosleep(&tv, NULL);
}
INFO:root:starting the client thread
INFO:root:calcsize: 8
INFO:root:auth object: type: 1, direction: 1, args: 0, length: 0,
INFO:root:data being sent: bx01x01x00x00x00x00x00x00
INFO:root:binary data: 0000000100000001000000000000000000000000000000000000000000000000
INFO:root:sending: bx01x01x00x00x00x00x00x00
INFO:root:waiting 10 seconds before stopping.
INFO:root:received header data: b
Press ENTER or type command to continue
INFO:root:starting the client thread
INFO:root:calcsize: 8
INFO:root:auth object: type: 1, direction: 1, args: 0, length: 0,
INFO:root:data being sent: b'\x01\x01\x00\x00\x00\x00\x00\x00'
INFO:root:binary data: 0000000100000001000000000000000000000000000000000000000000000000
INFO:root:sending: b'\x01\x01\x00\x00\x00\x00\x00\x00'
INFO:root:waiting 10 seconds before stopping.
INFO:root:received header data: b''
Press ENTER or type command to continue
This file has been truncated, but you can view the full file.
-- Journal begins at Wed 2020-10-14 01:51:08 PDT, ends at Wed 2021-01-27 11:20:31 PST. --
Jan 27 11:13:52 volcano kernel: microcode: microcode updated early to revision 0xde, date = 2020-05-26
Jan 27 11:13:52 volcano kernel: Linux version 5.10.10-arch1-1 (linux@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Sat, 23 Jan 2021 23:59:48 +0000
Jan 27 11:13:52 volcano kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=d9405408-bbfb-46cc-a012-cbcb8171058f rw cryptdevice=UUID=1b69a608-3921-4af9-a962-85a365f5c8d9:root root=/dev/mapper/root loglevel=3 net.ifnames=0 biosdevname=0 audit=0 splash
Jan 27 11:13:52 volcano kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 27 11:13:52 volcano kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 27 11:13:52 volcano kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jan 27 11:13:52 volcano kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
Jan 27 11:13:52 volc
### Keybase proof
I hereby claim:
* I am kevr on github.
* I am nxkevr (https://keybase.io/nxkevr) on keybase.
* I have a public key whose fingerprint is 0F98 5B6F 99B6 6868 54C4 4EC3 F7E4 6DED 4207 88F3
To claim this, I am signing this object:

Changelog

All notable changes to this project will be documented in this file.

Branch HEAD Status Coverage
pu 33adf25c pipeline coverage

bug fixes

Commit Message