Skip to content

Instantly share code, notes, and snippets.

View fzerorubigd's full-sized avatar
🤷‍♂️
/shrug

Forud fzerorubigd

🤷‍♂️
/shrug
View GitHub Profile
کپی غیر قانونی
fzerorubigd
نوامبر 25 18:22
سلام
اول اینکه ممنون از اینکه چنین کاری رو راه انداختید و کلی از مشکلات
ما رو حل کردید.
#!/bin/bash
echo 37 > /sys/class/gpio/export
echo 38 > /sys/class/gpio/export
echo 39 > /sys/class/gpio/export
echo 40 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio37/direction
echo high > /sys/class/gpio/gpio38/direction
echo high > /sys/class/gpio/gpio39/direction
echo high > /sys/class/gpio/gpio40/direction
echo 1 > /sys/class/gpio/gpio37/value
@fzerorubigd
fzerorubigd / dunstrc
Last active December 12, 2015 09:19
My dunstrc
[global]
font = xft:inconsolata:size=10
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
format = "%s %b"
@fzerorubigd
fzerorubigd / i3config
Created August 1, 2013 12:43
my i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Info]
"PackageFeatures"=dword:00000001
@fzerorubigd
fzerorubigd / 90-keyboard.conf
Created February 27, 2014 10:25
/etc/X11/xorg.conf.d/90-keyboard.conf
Section "InputClass"
Identifier "keyboard"
Driver "evdev"
MatchIsKeyboard "on"
Option "XkbModel" "evdev"
Option "XkbLayout" "us,ir"
Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
EndSection
<?php
/**
* Transforms an under_scored_string to a camelCasedOne
*/
function camelize($scored) {
return lcfirst(
implode(
'',
array_map(
@fzerorubigd
fzerorubigd / .zshrc
Created May 27, 2014 07:32
Attach to any old TMUX on exit if its not a tty (only in pty and anything else)
# TMUX
if [ -z `tty | grep tty` ] ; then
if which tmux 2>&1 >/dev/null; then
# if no session is started, start a new session
test -z ${TMUX} && tmux
# when quitting tmux, try to attach
while test -z ${TMUX}; do
tmux attach || break
done
@fzerorubigd
fzerorubigd / .zshrc
Created June 9, 2014 08:40
run tmux in all emulated tty and attach to them when exiting the shell
# TMUX
if [ -z `tty | grep tty` ] ; then
if which tmux 2>&1 >/dev/null; then
# if no session is started, start a new session
test -z ${TMUX} && tmux
# when quitting tmux, try to attach
while test -z ${TMUX}; do
echo "Press enter to attach to other tmux instanse, or anything then enter to just leave"
read attachto
@fzerorubigd
fzerorubigd / solarized-dark.xml
Last active August 29, 2015 14:02
Solarized dark for liteide
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Solarized-Dark">
<!-- Based on the Solarized color scheme by Ethan Schoonover:
http://ethanschoonover.com/solarized -->
<style name="Text" foreground="#839496" background="#002b36"/>
<style name="Extra" foreground="#839496" background="#073642"/>
<style name="Selection" background="#77ddff"/>
<style name="CurrentLine" background="#002b36"/>
<style name="IndentLine" foreground="#008B8B"/>
<style name="VisualWhitespace" foreground="#c0c0c0"/>