Skip to content

Instantly share code, notes, and snippets.

View Adeohluwa's full-sized avatar

Ade Adeohluwa

  • Remote
View GitHub Profile
@Adeohluwa
Adeohluwa / all.txt
Created October 9, 2017 14:42
all categories
3D Design
3D Displays
3D Visualisations
Abattoirs
Accessories
Accident investigation
Acoustic consultancy
Activity holidays
Addictions consultants
Admin and Clerical
@Adeohluwa
Adeohluwa / scraper.nim
Last active August 7, 2022 21:10
Scraper Written IN Nim
#!/usr/bin/env nimcr
# website is https so compile with nim c -r --threads:on -d:ssl bizlist_scraper.nim
import httpclient, htmlparser, os, threadpool,
system, strutils, re, strtabs, sequtils,
xmltree, nimquery, streams, csvtools, tables
# create a directory for each industry
3D Design
3D Displays
3D Visualisations
Abattoirs
Accessories
Accident investigation
Acoustic consultancy
Activity holidays
Addictions consultants
Admin and Clerical
3D Design
3D Displays
3D Visualisations
Abattoirs
Accessories
Accident investigation
Acoustic consultancy
Activity holidays
Addictions consultants
Admin and Clerical
#!/usr/bin/env nimcr
# website is https so compile with nim c -r --threads:on -d:ssl bizlist_scraper.nim
import httpclient, htmlparser, os, threadpool,
system, strutils, re, strtabs, sequtils, xmltree
# create a directory for each industry
proc mkCategories() =
@Adeohluwa
Adeohluwa / gist:7d579a070f21b6b4ba8a1c68d9b48284
Created September 22, 2017 21:39
Output of ls -la on Dir
ls -la /home/rabbi/.nimble/bin/nimcr
lrwxrwxrwx 1 root root 42 Sep 15 05:28 /home/rabbi/.nimble/bin/nimcr -> /home/rabbi/.nimble/pkgs/nimcr-0.1.0/nimcr*
@Adeohluwa
Adeohluwa / gist:ba1ac38d5ef11c3a9ba7239d08e09be1
Created September 22, 2017 21:24
Output Of Strace On My Machine
/tmp  strace ./choosenim-0.2.2_linux_amd64 stable Fri 22 Sep 2017 22:22:37 WAT
execve("./choosenim-0.2.2_linux_amd64", ["./choosenim-0.2.2_linux_amd64", "stable"], [/* 56 vars */]) = 0
brk(NULL) = 0xa53000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ce201d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=138411, ...}) = 0
mmap(NULL, 138411, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ce1ffb000
close(3) = 0
@Adeohluwa
Adeohluwa / gist:a49409d249d9f09a4a69b8efd867fb28
Created September 22, 2017 20:19
Choose NIM Fails To Build On The Server
root@ubuntu-512mb-nyc3-01:~# curl https://nim-lang.org/choosenim/init.sh -sSf | sh
choosenim-init: Downloading choosenim-0.2.2_linux_amd64
Info: Nim 0.17.2 already downloaded
Extracting nim-0.17.2.tar.gz
Building Nim 0.17.2
Building tools (nimble, nimgrep, nimsuggest)
Exception: Execution failed with exit code 1
... Command: ./koch tools -d:release
... Output: bin/nim c --noNimblePath -p:compiler -d:release -o:bin/nimsuggest nimsuggest/nimsuggest.nim
... Hint: used config file '/root/.choosenim/toolchains/nim-0.17.2/config/nim.cfg' [Conf]
@Adeohluwa
Adeohluwa / gist:6c86d6d761a2e490937ce19a0446ce85
Last active September 22, 2017 19:50
Choosenim Throws Up Error On My Machine
$ sudo curl https://nim-lang.org/choosenim/init.sh -sSf | sh
choosenim-init: Downloading choosenim-0.2.2_linux_amd64
Error: unhandled exception: cannot open: /home/rabbi/.nimble/bin/nim [IOError]
this happens on my machine on a clean install i already have nim & nimble
followed instruction as specified in https://github.com/dom96/choosenim under Unix section
@Adeohluwa
Adeohluwa / GUI Login Application - Heavily Commented.py
Created June 15, 2017 08:17 — forked from SirRobo/GUI Login Application - Heavily Commented.py
GUI Login Application made on my YouTube channel.
from tkinter import *
import os
creds = 'tempfile.temp' # This just sets the variable creds to 'tempfile.temp'
def Signup(): # This is the signup definition,
global pwordE # These globals just make the variables global to the entire script, meaning any definition can use them
global nameE
global roots