Skip to content

Instantly share code, notes, and snippets.

@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
@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
(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 / connect.org
Last active August 29, 2015 14:06 — forked from fzerorubigd/connect.org

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

پیشنیازها

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

روش بازی

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

@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))))
! 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
! 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
library("openxlsx")
library("rpart")
library("rpart.plot")
## setwd("/home/samim/workspace/danial")
# Load the data
wb <- read.xlsx("data.xlsx")

Keybase proof

I hereby claim:

  • I am psamim on github.
  • I am psamim (https://keybase.io/psamim) on keybase.
  • I have a public key whose fingerprint is 140D 35F2 49CA AF6A 0643 DB8D 8EE8 CF0F 66FF 44A5

To claim this, I am signing this object:

! "Enabled modi" Set from: XResources
rofi.modi: run
! "Window opacity" Set from: XResources
rofi.opacity: 93
! "Window width" Set from: Default
! rofi.width: 50
! "Number of lines" Set from: XResources
rofi.lines: 8
! "Number of columns" Set from: Default
! rofi.columns: 1