Skip to content

Instantly share code, notes, and snippets.

Bogdan Rădulescu bogdanr

Block or report user

Report or block bogdanr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bogdanr / HLK-RM02 U-Boot printenv
Last active Jan 1, 2016
Boot HLK-RM02 various configs
View HLK-RM02 U-Boot printenv
RT5350 # printenv
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) panic=1
flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
bogdanr / dmesg
Created Dec 28, 2013
HLK-RM02 - Boot of the minimal image
View dmesg
[ 0.000000] Linux version 3.10.13 (bogdan@osc) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38333) ) #5 Sat Dec 28 12:30:53 EET 2013
[ 0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] MIPS: machine is HILINK HLK-RM04
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 01000000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
bogdanr / command list
Created Dec 28, 2013
HLK-RM02 - Boot of the general purpose image By default wireless in not enabled in this image (see /etc/config/wireless) The default address for accessing this image is on the lan interface
View command list
[ crond find init logread nslookup rm sysctl umount
[[ crontab firstboot insmod ls ntpd rmdir sysupgrade uname
arping cut free lsmod odhcp6c rmmod tail uniq
ash date fsync iptables md5sum opkg route tar uptime
askfirst dbclient grep iptables-restore mkdir passwd scp tee vconfig
awk dd gunzip iptables-save mkfifo pgrep sed telnet vi
basename devstatus gzip iw
# Playground to help me figure out how to package horizon
test_horizon-setup() {
View gist:8670aa1393ba8fc200c9
crazy-horizon() {
rm -rf horizon/build horizon/MANIFEST
cp -a horizon $PKGCTL/root
find horizon -name '*.pyc' -delete
cd horizon && python install --root $PKGCTL
cd ..
bogdanr / gist:9145a9defa2050a9f56b
Last active Aug 29, 2015
Very basic Linux CPU core speed tests
View gist:9145a9defa2050a9f56b
# These should run in under two minutes on a decent CPU from 2014
time echo "scale=7000; a(1)*4" | bc -l
echo '2^2^23' | time bc > /dev/null
bogdanr / gist:84bb70247e3035ce68c2
Created May 7, 2015
wpa_supplicant corporate cfgs
View gist:84bb70247e3035ce68c2
bogdanr / squid.conf
Created May 25, 2015
Squid.conf SSL transparent proxy
View squid.conf
visible_hostname vm-gateway
# Recommended minimum configuration:
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src
acl localnet src
bogdanr / gist:59297a484f0ec8211a35
Created Feb 5, 2016
Kill long running processes in RDS
View gist:59297a484f0ec8211a35
mysql -h __some_host__ -p __some_pass__ -r -s -e "select concat('CALL mysql.rds_kill(',id,');') from information_schema.processlist where command='Sleep' and time > 200;" > aaa.sql
View teclast.html
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="">
<meta name="generator" content="lshw-B.02.17" />
<style type="text/css">
.first {font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; }
.second {padding-left: 1em; width: 100%; vertical-align: center; }
.id {font-family: monospace;}
You can’t perform that action at this time.