Skip to content

Instantly share code, notes, and snippets.

View andrew-aladev's full-sized avatar
🐻

Andrew Aladjev andrew-aladev

🐻
View GitHub Profile
@davispuh
davispuh / steam_console_params.txt
Last active May 2, 2024 00: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
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@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.
@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")
#!/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
@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
@rolo
rolo / html_compile.py
Created August 1, 2012 16:37
Python script to compile .shtml files with server side includes down to flat HTML suitable for hosting on S3 or where SSIs aren't supported.
#! /usr/bin/env python
import os
import re
import shutil
from os.path import splitext
SOURCE = os.getcwd() + "/www/"
TARGET = os.getcwd() + "/compiled/"
if not os.path.exists(TARGET):
@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+/]
@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