Skip to content

Instantly share code, notes, and snippets.

View valera-rozuvan's full-sized avatar
💻
coding

Valera Rozuvan valera-rozuvan

💻
coding
View GitHub Profile
@valera-rozuvan
valera-rozuvan / Dockerfile
Created May 27, 2018 11:55
Dockerfile for Cordova + Android SDK
FROM node:boron-stretch
# Setup necessary system dependencies.
RUN echo "deb http://http.us.debian.org/debian stretch main contrib non-free" >> "/etc/apt/sources.list"
RUN echo "deb http://security.debian.org stretch/updates main contrib non-free" >> "/etc/apt/sources.list"
RUN apt-get update
https://medium.com/@_rchaves_/building-microfrontends-part-i-creating-small-apps-710d709b48b7
Trying the commands after the sentence "That's it, you can now run the header with:".
--------------------------
Valeras-MacBook-Air:header valerarozuvan$ npm run build
> [email protected] build /Users/valerarozuvan/dev/experiments/micro_f_01/header
> react-scripts build
@valera-rozuvan
valera-rozuvan / asm_code_thargor6_mb3d_project.txt
Created July 27, 2016 22:06
All assembly code from thargor6/mb3d project
function FastLocateByte(const Where; Start, BSize: Integer; What: Word): Integer; assembler; pascal;
asm
push edi
mov ecx, [bsize]
sub ecx, [start]
jz @notfound // No data to search
mov edi, [where]
add edi, [start]
mov ax, [what]
@search:
@valera-rozuvan
valera-rozuvan / gist:5ce818fb842fd5636f6a
Created January 10, 2016 14:28
bash_history of an OpenCV 2.4.11 and Python 2.7 install on a raspberry pi 2
sudo raspi-config
df -h
cat /proc/cpuinfo
/opt/vc/bin/vcgencmd measure_temp
sudo shutdown -h now
sudo ifconfig
/opt/vc/bin/vcgencmd measure_temp
htop
top
/opt/vc/bin/vcgencmd measure_temp
Page 1 (Scheduler not running?):
{'cups_connection_failure': False}
Page 2 (Is local server publishing?):
{'local_server_exporting_printers': False}
Page 3 (Choose printer):
{'cups_dest': <cups.Dest LBP6020-2 (default)>,
'cups_instance': None,
'cups_queue': u'LBP6020-2',
'cups_queue_listed': True}
Page 4 (Check printer sanity):
D [04/Aug/2015:11:31:24 +0300] [Client 14] Sending file.
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=5332, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=3284, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1236, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] [Client 14] Waiting for request.
D [04/Aug/2015:11:31:24 +0300] cupsdSetBusyState: newbusy="Dirty file
I get the following warnings when running 8fa9787a4d8185aa46d22eac0eaf53046777e0f6 commit.
---------------------------------------------------------
/home/valera/github_projects/02-angular-mentoring-app/src/app/components/storage/storage.factory.js
line 23 col 39 Expected '===' and instead saw '=='.
line 53 col 31 Expected '===' and instead saw '=='.
line 41 col 33 'localStorage' is not defined.
line 108 col 9 'localStorage' is not defined.
@valera-rozuvan
valera-rozuvan / gist:9b97038399120a22adca
Created June 1, 2015 23:18
C-h f tab-to-tab-stop RET
tab-to-tab-stop is an interactive compiled Lisp function.
It is bound to <tab>, M-i.
(tab-to-tab-stop)
Insert spaces or tabs to next defined tab-stop column.
The variable `tab-stop-list' is a list of columns at which there are tab stops.
Use M-x edit-tab-stops to edit them interactively.
$ cd tmp/
$ wget https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz
--2014-05-05 13:43:15-- https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz
Resolving www.dropbox.com (www.dropbox.com)... 108.160.166.13
Connecting to www.dropbox.com (www.dropbox.com)|108.160.166.13|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw [following]
--2014-05-05 13:43:18-- https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.21.215.118, 50.16.206.191, 50.16.219.169, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.21.215.118|:443... connected.