Skip to content

Instantly share code, notes, and snippets.

View directorscut82's full-sized avatar

directorscut82 directorscut82

View GitHub Profile
@directorscut82
directorscut82 / no-coding-assigment.md
Created February 26, 2018 19:29 — forked from iwangu/no-coding-assigment.md
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Hi there! Thanks for offering me a coding assigment test. I see that this can be a useful method to compare different candidates applying for the XYZ-Role. I would like to kindly ask if you have some leeway in finding an alternative way to evaluate my coding skills? I have written a number of open-source projects/spoke at conferences/worked as a coding-teacher/did XYZ and I would love to showcase this to your engineers:

LIST STUFF YOU DID

These are just some projects I picked that demonstrate not just skill in programming but also in math, design and XYZ.

Please can I kindly ask you to check with your engineers and/or the hiring manager to perhaps have a look/conduct a code review and/or ask me to add a feature or resolve a bug?

I checked that ABC is doing a lot of XYZ and I opened a Github issue extra for ABC (LINK TO GITHUB ISSUE). I can program this feature/fix that bug within a given timeframe and then discuss the written code with one of your engineers?

@directorscut82
directorscut82 / arpscan
Created February 13, 2018 08:49
[scan network for ips] #CLI
sudo arp-scan --interface=enp2s0 --localnet
@directorscut82
directorscut82 / setup.sh
Last active February 12, 2018 11:13
[setup TFTP server] #CLI
#Installation
sudo apt-get install tftpd-hpa
sudo service tftpd-hpa status
netstat -a | grep tftp
#Configuration
Mkdir /tftp
sudo cp /etc/default/tftpd-hpa /etc/default/tftpd-hpa.ORIGINAL
sudo vi /etc/default/tftpd-hpa
TFTP_DIRECTORY=”~/tftp”
@directorscut82
directorscut82 / delete.git
Created February 1, 2018 08:16
[Perform the following steps to DELETE/REVERT Commits Locally+Remotely] #GIT
Perform the following steps to DELETE/REVERT Commits Locally+Remotely
First Locally Reverting to commit <id>
git reset --hard <id>
followed by
git clean -f -d
These two commands clean force reset to commit stage <id> as shown below in snapshot
@directorscut82
directorscut82 / steps
Created January 11, 2018 13:30
[find highest cpu usage per thread] #CLI
Just to clarify all the steps required to diagnose this issue. (thanks everyone for postings) :
Following command shows the list of process with their CPU / Memory usage :
ps auxf
Following command gives the list of all threads of a process sorted with CPU usage.
top -H -p [PID]
@directorscut82
directorscut82 / instructions
Created January 8, 2018 10:59
[mount usb device] #CLI
mkdir testusb
sudo mount /dev/sdc -t auto testusb/
#for debuggin use
mount
sudo fdisk -l
dmesg -tail
@directorscut82
directorscut82 / instructions
Last active January 23, 2018 11:36
[FLASHING PARTITIONS] #CLI #EKT
(partition table)
from uboot use mtd command
else cat /proc/mtd
(backup)
dd if=/dev/mtd5 of=/geo_sec_see_bin.ubo
dd if=/dev/mtd6 of=/geo_vmlinux.ubo
@directorscut82
directorscut82 / printsha256sums.c
Created January 8, 2018 10:04
print sha256 sums
int printsha256sums(char* fname)
{
char path[1035];
char command[256];
snprintf(command,256,"sha256sum %s",fname);