Skip to content

Instantly share code, notes, and snippets.

View luqmansen's full-sized avatar
🎯
Focusing

Luqman luqmansen

🎯
Focusing
View GitHub Profile
@luqmansen
luqmansen / main.go
Created August 15, 2019 02:56
Simple Go Hash Table
package main
import (
"bufio"
"fmt"
"log"
"net/http"
)
func main() {
@luqmansen
luqmansen / Countdown.html
Last active November 3, 2019 06:59
Simple Js Countdown Timer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Countdown Timer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="text-center text-xs-center">
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luqmansen
luqmansen / .zshrc
Last active December 20, 2019 06:22
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
We can't make this file beautiful and searchable because it's too large.
id,date,price,bedrooms,bathrooms,sqft_living,sqft_lot,floors,waterfront,view,condition,grade,sqft_above,sqft_basement,yr_built,yr_renovated,zipcode,lat,long,sqft_living15,sqft_lot15
1944900090,20140519T000000,462000.0,5,1.75,1250,10530,1.0,0,0,4,7,1250,0,1966,0,98007,47.6101,-122.13799999999999,1560,8190
2597520900,20140804T000000,768000.0,3,2.5,2660,10928,2.0,0,0,3,9,1830,830,1988,0,98006,47.5442,-122.141,2800,10025
4141800030,20141014T000000,920000.0,3,1.75,2480,4000,1.0,0,0,3,8,1240,1240,1948,2014,98122,47.615,-122.288,2450,4000
301400830,20141223T000000,263000.0,3,2.5,1584,3200,2.0,0,0,3,7,1584,0,2011,0,98002,47.3451,-122.215,1584,2800
1776230180,20141008T000000,427500.0,4,2.5,2430,3249,2.0,0,0,3,8,2430,0,2010,0,98059,47.5048,-122.155,2650,3844
8943600360,20150219T000000,299000.0,3,2.25,1350,3582,2.0,0,0,3,8,1350,0,2010,0,98031,47.4214,-122.191,1940,3860
7852140040,20140825T000000,507250.0,3,2.5,2270,5536,2.0,0,0,3,8,2270,0,2003,0,98065,47.5389,-121.881,2270,5731
1630700276,20150105T000000,385000.0,2,1.5,
@luqmansen
luqmansen / setup.sh
Last active April 5, 2020 04:49
Basic configuration for my private ubuntu server
#!/bin/bash
apt update
apt upgrade -yyyy
apt install nginx screen aria2 htop
# install docker
apt-get remove docker docker-engine docker.io containerd runc
apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTgcuQJD38A8nd5nQs8qvQblXgNP2bP6pMyaQ&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRSlWPh1MdHEcCaO91QFvJ6-pmG1PyqZGqsbA&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSFMMDYo6tUNbRoq1y5s2fKXVariP2V0qbHtQ&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcS1gx1nu6BEVMI82gKkJlPxcGcnCB_Zt6qfTw&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQaZkwESrmxem7Ul5CCaspIiJoVXI8JafSdpA&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQb59bODxAhQ-Ha5XvRLguF4LEWgD-A2-8ERQ&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRxE3GqlwDl8bvnZyiOQv97bxCwMKN8IGeGbA&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQ7nF1Z8mZzay1oOYFI0vZQuwLt3-rKJX2mrg&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTdTohU_C4sUJ67feUXcv8uguvVJ4GcNk02Iw&usqp=CAU"
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTS5Wgrs74OLiBlVssqpbTCgRcOCDBFU
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTEhMVFRUXFxcVFxcXFRUVGBUYFRUXFxYVFxcYHSggGBolGxcVITEhJSkrLi4uFx8zODMtNyotLisBCgoKDg0OGxAQGi0mICUvLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSsvLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALcBEwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAADBAACAQUGBwj/xABCEAACAQMDAQUGAwYEBQMFAAABAhEAAyEEEjFBBRMiUWEGMnGBkaFCscEHFCNS0fAzYuHxFVOCkrJyc6IWJENEY//EABoBAAMBAQEBAAAAAAAAAAAAAAABAgMEBQb/xAAvEQACAgEDAQYFBAMBAAAAAAAAAQIRAxIhMUEEE1FhcfAFIoGRsaHB0eEkUvEU/9oADAMBAAIRAxEAPwCBaKqUOaIhr4ppiILVEW1WVNG20Rg5CZVEou2hgZokUnidhZZRRlWllJmm7VQpPhAjGyoRFEIoLNWbm0xlhUY1hGouyaWubewUBVqKomo1iiWh0rpUpcMVGAtXmrOlVC10RsCKc1cmhGrFqvagMgVh0qKayz0WkhFVWiTVUNZesZJFIFcqqmsEGoBUqO4rLqahahlDVGWm9QWS7dpeaOEqNbrKpS5GCK9ao1yjxNDezWquKCgXe1TdVikGsvaq029xALj4pYmm1Wh37PWrW+47FjUqVK2pBYW2k0UiKtaTFTuyTWPewuhURBTlm3QxbpuwABWTyKLGkD7ui9zisRmmFyKweqSGkhBlzRrZoj2s0dLNc7U470NIVYmhMtbBrFB2RURTkxtArVk0dDFFtrTmm7IuvwjfE+EfU16WLDe0FbIoVxFBbBroLfs3dIyUHzJ/SsXfZsj/APKs/A11z7FnatRA0yHFUuVtX7DuDhrbfBoP3ApPUdn3VyyNHmMj6jFZzxZo
@luqmansen
luqmansen / download_google_image.js
Created July 10, 2020 10:10
Download All Image from google search, THIS IS NOT MINE, I JUST AGGREGATING IT, original credit goes to pyimagesearch.com
function simulateRightClick( element ) {
var event1 = new MouseEvent( 'mousedown', {
bubbles: true,
cancelable: false,
view: window,
button: 2,
buttons: 2,
clientX: element.getBoundingClientRect().x,
clientY: element.getBoundingClientRect().y
} );
@luqmansen
luqmansen / init_ubuntu_mate.sh
Last active July 15, 2020 17:33
Debloat ubuntu mate 16.04
sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common
sudo apt remove rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut
sudo apt install git zsh curl
/bin/bash -c "$(curl -sL https://git.io/vokNn)"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions