Skip to content

Instantly share code, notes, and snippets.

@atotto
atotto / ros_laser_scanner_example.py
Last active August 1, 2024 09:46
Publishing Sensor Streams Over ROS (python)
#!/usr/bin/env python
import rospy
from sensor_msgs.msg import LaserScan
rospy.init_node('laser_scan_publisher')
scan_pub = rospy.Publisher('scan', LaserScan, queue_size=50)
num_readings = 100
@miguelfrde
miguelfrde / archinstall.md
Last active January 30, 2025 16:28
Preinstalled Windows 8.1 and Arch Linux dual boot

Arch Linux installation (preinstalled Windows 8.1 dual boot)

Before

  1. Disable Windows Fast-Startup
  2. Disable Secure Boot

Partitioning

To enable any of there plugins, go to: `Settings` -> `Plugins`
You'll find plugins in the first page, to get the others press `Browse repositories...` button.
- Apache config (.htaccess) support
- Bootstrap
- Color Ide
- CSS Support
- EditorConfig
- File Watchers
- Git Integration
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 17, 2026 19:56
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@gaurav
gaurav / gist:1475883
Created December 14, 2011 09:35
LaTeX to HTML on a Mac
1. Find your texbin directory. This is usually /usr/texbin, which is symlinked to wherever the actual directory is.
2. Add it to your PATH (i.e. `# export PATH=/usr/texbin:$PATH`)
3. Run the 'htlatex' command. This will convert your LaTeX file into an HTML document. Note that this really just a script around normal LaTeX, so you'll have to do the usual things (htlatex -> bibtex -> htlatex for citations, htlatex -> htlatex for references). I think: I had my LaTeX all PDF-LaTeXed and ready to go, so all the .bib/.toc/etc. files had already been created.
3.1. You might want to run 'htlatex file.tex "xhtml,fn-in"' if you have footnotes. Without that option, footnotes will be put into their own HTML file.
4. At this point, you have an HTML file. Check it and make sure it's good enough.
5. Open the HTML file in TextEdit. Oddly enough, Pages can't open HTML files, but TextEdit can. Go figure.
6. TextEdit can now save your file as an RTF or Doc file.
7. Success!
@ayanamist
ayanamist / proxy.pac
Created November 24, 2011 06:08
My Pac File for Auto Proxy
var PROXY = {
"direct":"DIRECT",
"gfw":"PROXY 127.0.0.1:8123"
};
var DEFAULT = "direct";
var SECTIONS = [
{
"name":"direct",
@mheadd
mheadd / line-break-sms.php
Created May 18, 2011 16:50
Simple PHP script for SMSified that puts a line break in the SMS message.
<?php
// Include the SMSifed class.
require 'path/to/smsified.class.php';
// SMSified Account settings.
$username = "username";
$password = "password";
$senderAddress = "9999999999";