Skip to content

Instantly share code, notes, and snippets.

View andrew-aladev's full-sized avatar
🐻

Andrew Aladjev andrew-aladev

🐻
View GitHub Profile
@superjose
superjose / .gitlab-ci.yml
Last active February 19, 2024 10:22
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@andrew-aladev
andrew-aladev / jxcore install script
Last active September 1, 2016 10:54 — forked from mohlsen/jxcore install script
jx-install.sh
#!/bin/bash
# based on https://github.com/jxcore/jxcore/blob/master/tools/jx_install.sh
# changed because jxcore.com was down and the aws instance no longer exists
NORMAL_COLOR='\033[0m'
RED_COLOR='\033[0;31m'
GREEN_COLOR='\033[0;32m'
GRAY_COLOR='\033[0;37m'
MAGENTA_COLOR='\033[0;35m'
@endel
endel / conver.pe
Last active January 21, 2024 06:37
FontForge script to convert .ttf file to its webfont variations (.otf, .svg, .woff, .woff2)
#!/usr/local/bin/fontforge
Open($1)
Generate($1:r + ".otf")
Generate($1:r + ".svg")
Generate($1:r + ".woff")
Generate($1:r + ".woff2")
@henriquemenezes
henriquemenezes / ip-default-gw.rb
Created April 1, 2016 14:32
Get default gateway IP in Ruby
gw = `ip route show`[/default.*/][/\d+\.\d+\.\d+\.\d+/]
@floriandejonckheere
floriandejonckheere / pre-push
Last active June 28, 2022 13:42
RDoc git hook to GitHub Pages
#!/usr/bin/sh
git checkout gh-pages
git merge master
rake rdoc
git add -f html
git commit -m "Generate RDoc for commit $(git rev-parse master)"
git push --no-verify
git checkout master
@jk0
jk0 / gist:2d263a1bac50b0cd1e71
Created May 1, 2015 15:47
TCP/IP Over AX.25
Equipment
Raspberry Pi - http://amzn.com/B00MV6TAJI
USB Bluetooth Adapter - http://amzn.com/B009ZIILLI
2x BaoFeng UV5R Radio - http://amzn.com/B007H4VT7A
2x Nagoya NA-771 Antenna - http://amzn.com/B00KC4PWQQ
2x Mobilinkd TNC2 - http://store.mobilinkd.com/products/battery-powered-bluetooth-kiss-tnc
2x Mobilinkd TNC2 Cable - http://store.mobilinkd.com/products/kenwood-wouxun-baofeng-tnc-cable
Documentation
@philipz
philipz / gist:590a241cd262fac09152
Last active September 3, 2019 22:29
Qemu-arm-static on X86 error
Qemu 版本
qemu-arm-static -version
qemu-arm version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.10), Copyright (c) 2003-2008 Fabrice Bellard
### 透過 Qemu-arm-static 執行 RPi GO
philipz@philipz:~$ docker run -it -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static philipz/rpi-golang bash
root@c306591a15f6:/gopath# go
fatal error: rt_sigaction failure
#!/bin/sh
### BEGIN INIT INFO
# Provides: dockercompose
# Required-Start: $docker
# Required-Stop: $docker
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Docker Services
### END INIT INFO
@davispuh
davispuh / steam_console_params.txt
Last active April 19, 2024 15:13
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@ugorji
ugorji / msgpack-timestamp-type.md
Last active March 5, 2018 20:51
MsgPack: Support timestamp as new spec-defined inter-operable extension type

Timestamp is a data type that represents an instant in time and space. It is supported by most programming languages. However, it is not defined in the msgpack spec. The lack of built-in support for timestamp is a constant issue brought up while evaluating encodings.

The proposal is to include timestamp support in the new spec as an inter-operable extension type, defined by the spec along with Binary. It will have extension tag -2.

A timestamp is composed of 3 components:

  • secs: signed integer representing seconds since unix epoch
  • nsces: unsigned integer representing fractional seconds as a nanosecond offset within secs, in the range 0 <= nsecs < 1e9
  • tz: signed integer representing timezone offset in minutes east of UTC, and a dst (daylight savings time) flag