Skip to content

Instantly share code, notes, and snippets.

! Enabled modi
rofi.modi: run
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
rofi.lines: 15
! Number of columns
rofi.columns: 1
! Enabled modi
rofi.modi: run
! Window opacity
rofi.opacity: 93
! Window width
rofi.width: 50
! Number of lines
rofi.lines: 8
! Number of columns
rofi.columns: 1
@psamim
psamim / pomo
Created February 29, 2016 07:27
#!/bin/sh
elisp=$(cat <<'END_HEREDOC'
(concat
(if (org-clock-is-active) (org-clock-get-clock-string) "")
" "
(when (org-pomodoro-active-p)
(format
(propertize org-pomodoro-format 'face 'org-pomodoro-mode-line)
(org-pomodoro-format-seconds))))
@psamim
psamim / connect.org
Last active August 29, 2015 14:06 — forked from fzerorubigd/connect.org

کانکت - بازی گروهی

پیشنیازها

  • یک جمع دست کم ۴ نفره
  • دل خوش :)

روش بازی

یک نفر که مجری مرحله میشود یک کلمه در ذهن خود انتخاب میکند و سپس حرف اول آنرا اعلام میکند. این نفر را مجری بازی مینامم. هدف باقی افراد این است که این کلمه را حدس بزنند. روش حدس زدن به اینصورت است که هر شخص یک کلمه را حدس میزند ولی در ذهن خود نگه میدارد و بر اساس کلمه در ذهن خود یک نشانی به بقیه میدهد.

(defun psamim-push-gtasks-todos ()
"Asynchronously syncs to Google tasks"
(interactive)
(org-tags-sparse-tree t "+TODO=\"NEXT\"")
(org-export-visible ?\s nil)
(delete-matching-lines "^\* .*")
(replace-string "** NEXT" "*")
(write-file psamim-mobile-todo-org-file nil)
(my-window-killer)
(message "Pushing todos started")
@psamim
psamim / vhost
Created October 16, 2013 08:54 — forked from gistwebdev/vhost
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local
@psamim
psamim / wget.sh
Last active December 25, 2015 02:59
Download Leecher
#!/usr/bin/env bash
SSH_ACCOUNT=52565751e0b8cd99d30001ba@download-psamim.rhcloud.com
DIR="files"
# SSH To Server
ssh $SSH_ACCOUNT 'bash -s'<<ENDSSH
# Get File Name
filename=\`date +%s\`
# Get File