Skip to content

Instantly share code, notes, and snippets.

@4ydx
4ydx / 00_blot7.md
Created March 17, 2018 09:48 — forked from keijiro/00_blot7.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / 00_blot9.md
Created March 17, 2018 09:48 — forked from keijiro/00_blot9.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / README-Template.md
Created February 10, 2018 00:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@4ydx
4ydx / conkyrc
Last active September 18, 2018 03:40
conkyrc
conky.config = {
-- -- Conky settings -- #
background = true,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
@4ydx
4ydx / debian stretch + xmonad
Last active April 24, 2020 17:31
debian stretch + xmonad
Based on: http://beginners-guide-to-xmonad.readthedocs.io/configure_xmobar.html
When logging in using the X11 option.
.xsession
stalonetray &
pasystray &
conky &
feh --bg-scale ~/Documents/nights.jpg
I am using this config http://github.com/vicfryzel/xmonad-config because of ease of use.
It does not require anything gnome related aside from the terminal.
Figuring out how to get xmonad to look good on a retina display running ubuntu on parallels was a slight pain.
- Configure parallels to use the native retina display resolution rather than scaling up.
- Install gnome-tweak-tool. Set preferred scaling value for fonts (1.5 in my case).
- Add the following to .xsessionrc: gnome-settings-daemon &
- Firefox: about:config -> layout.css.devPixelsPerPx set to 2.0
@4ydx
4ydx / xmonad-ubuntu-16.04
Last active September 7, 2017 06:57
xmonad + xmobar
sudo apt-get install xmonad xmobar feh
Use the xmonad.hs and xmobar.hs files as found here:
https://github.com/4ydx/xmonad-config
Figuring out how to get xmonad to look good on a retina display running ubuntu on parallels was a slight pain.
- Configure parallels to use the native retina display resolution rather than scaling up.
- Install gnome-tweak-tool. Set preferred scaling value for fonts (1.5 in my case).
@4ydx
4ydx / handler.js
Created February 2, 2016 05:33 — forked from ThisIsMissEm/handler.js
The better way to execute Go on Amazon Lambda (see: http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/)
var child_process = require('child_process');
exports.handler = function(event, context) {
var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' });
proc.on('close', function(code){
if(code !== 0) {
return context.done(new Error("Process exited with non-zero status code"));
}
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@4ydx
4ydx / .bashrc
Created July 1, 2015 03:51
.bashrc
findg() {
find . -type f -exec grep -Hn "$1" {} \;
}
vim_open() {
vim $(find . -type f -exec grep -l "$1" {} \;)
}