Skip to content

Instantly share code, notes, and snippets.

@goingeast
goingeast / fbootfix.md
Created November 15, 2017 22:12 — forked from smac89/fbootfix.md
Linux Fix Fastboot "no permissions, verify udev rules"

Determine your device id

  1. Unplug your device from the computer and type lsusb in the terminal. You should get an output similar to this:
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
@goingeast
goingeast / setup-mongodb.sh
Created May 19, 2017 16:51 — forked from sheikhwaqas/setup-mongodb.sh
Install MongoDB Server on Ubuntu
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
/ Binary Search
class Solution_BS {
public:
vector<int> countSmaller(vector<int>& nums) {
vector<int> t, res(nums.size());
for (int i = nums.size() - 1; i >= 0; --i) {
int left = 0, right = t.size();
while (left < right) {
int mid = left + (right - left) / 2;
if (t[mid] >= nums[i]) right = mid;
@goingeast
goingeast / gist:5e3c6473e9b6a0f183d6
Created November 12, 2015 22:41
c++ compile error
http://stackoverflow.com/questions/15579172/undefined-reference-to-class-constructor-including-cpp-file-fixes
@goingeast
goingeast / gist:689d8c3465c3b6385fe2
Last active October 21, 2015 17:52
new technologies
1. redis,
2. celery,
3. disqus. for discussion.
4. Aircrack-ng