Skip to content

Instantly share code, notes, and snippets.

;;repositories
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
;;
;;2015.12. - after emacs update.. helm is not working!! unbinding keys..
;;
;;(global-set-key (kbd "C-x b") 'helm-mini)
;;(global-set-key (kbd "M-x") 'helm-M-x)
!Emacs.font: Dejavu Sans Mono-12
!Emacs.FontBackend: xft
Emacs.useXIM: off
#!/bin/sh
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx
#!/bin/sh
xset fp+ "/usr/share/fonts/truetype/ttf-dejavu"
xset fp+ "/usr/share/fonts/truetype/nanum"
@applecargo
applecargo / README_jackd2.txt
Created April 19, 2016 16:03 — forked from rogerallen/README_jackd2.txt
Patch for ARM jackd2 on Ubuntu 14.04
Fixing jack audio on ARM Ubuntu 14.04
Install prerequisite packages:
$ sudo apt-get build-dep jackd2
Install the source package:
$ apt-get source jackd2
Downloads the source into the current directory and applies the Ubuntu
// for example, if we have a mp3 at "audio/tuba@7/01.mp3"
var test = new Tone.Player("audio/tuba@7/01.mp3").toMaster(); // load and connect
test.retrigger = true; // enable retrigger
test_srcs = []; // prepare an array to keep track of sounds..
test_srcs.push(test.start()._source); // start playbacks and collect their '_source's..
test_srcs.push(test.start()._source);
@applecargo
applecargo / laptop_fan.sh
Created May 8, 2017 14:30 — forked from nwjlyons/laptop_fan.sh
Manually control Mac Book Pro laptop fan from linux
# First su in as root
sudo su
# Then set fan control to manual mode
echo 1 > /sys/devices/platform/applesmc.768/fan1_manual
# Then set the fan speed to any value between fan1_min and fan1_max. To view these values
cat /sys/devices/platform/applesmc.768/fan1_min
cat /sys/devices/platform/applesmc.768/fan1_max
@applecargo
applecargo / .asoundrc
Created June 24, 2017 17:19
asoundrc for mbp55 (resolving inconsistency of recording channel by swapping channels only for recording), an ALSA practice!
pcm.swapped {
type route
slave {
pcm "hw:0"
channels 2
}
ttable.0.1 1
ttable.1.1 1
}
@applecargo
applecargo / imgproc.launch
Last active October 15, 2018 02:05
ros launch / remote launch setup explained (ubuntu 16.04 / ros kinetic)
<?xml version="1.0"?>
<launch>
<machine name="imgproc" address="ubuntu-imgproc.local" user="ubuntu" timeout="10.0" default="never" env-loader="/home/ubuntu/ros_env.sh"/>
<!-- image processor -->
<node machine="imgproc" pkg="knut_ai_vehicle" type="image_processing.py" name="image_processor" ns="image_processor">
</node>
</launch>
@applecargo
applecargo / raspberry-pi-install.md
Last active August 13, 2020 06:49 — forked from krithin/raspberry-pi-install.md
Jitsi Meet Server and Videobridge Installation on Raspberry Pi 4 with Ubuntu Server 20.04

Jitsi Meet install on a Raspberry Pi 4 with Ubuntu Server 20.04

This guide helps you host your own Jitsi server on a Raspberry Pi 4B. It is adapted from Jitsi's quick install guide and the Jitsi on ARM guide written by crouchingtigerhiddenadam. The biggest difference is this is designed to work with a Pi running Ubuntu Server 20.04 instead of Raspbian.

I did this because I'd rather set up Jitsi Meet on a Raspberry Pi I already own than add a dedicated VPS (and pay AWS's bandwidth costs) just for that. I used Ubuntu 20.04 because I'm more familiar with Ubuntu than with Raspbian, and using an arm64 OS makes the setup easier than on armhf. I also tried to use distribution packages instead of manually downloading individual deb files throughout.

Prerequisites

This guide assumes you already have a DNS name set up with an A record pointing