Skip to content

Instantly share code, notes, and snippets.

@ahelja
ahelja / mps other commands
Last active November 21, 2020 08:21
Mps other commands
top show top tracks this week
top3m show top tracks for last 3 months
top6m show top tracks for last 6 months
topyear show top tracks for last year
topall show all time top tracks
@ahelja
ahelja / muttrc
Last active November 21, 2020 08:21
Mutt run commands
#General --------------------------
set realname = 'Name Surname'
set from = 'username@domain.com'
set imap_user = 'username@domain.com'
set imap_pass = 'password'
set folder = 'imaps://imap.gmail.com:993'
set spoolfile = '+INBOX'
set postponed = '+[Gmail]/Drafts'
set trash = 'imaps://imap.gmail.com/[Gmail]/Trash'
set header_cache = '~/.mutt/cache/headers'
@ahelja
ahelja / new_file0
Last active November 21, 2020 08:17
Kawaii
╭∩╮(︶︿︶)╭∩╮ I don't CARE?
ლ(ಠ益ಠლ) BUT AT WHAT COST ??
┌∩┐(◣_◢)┌∩┐ GO TO YOUR DADDY!!
¯\_(ツ)_/¯ Shit happens?
(っ-●益●)っ ~~ WHY you NO KILL???
@ahelja
ahelja / livereload
Last active November 21, 2020 08:17
Livereload
<script src="http://localhost:35729/livereload.js"></script>
@ahelja
ahelja / ZipWithoutDS_Store
Last active November 21, 2020 08:22
Zip without desktop services store files
zip -r foo.zip foo -x "*.DS_Store"
@ahelja
ahelja / CURL-less_method_PHP5
Last active November 21, 2020 08:19
Curl less method PHP
$url = 'http://server.com/path';
$data = array('key1' => 'value1', 'key2' => 'value2');
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
@ahelja
ahelja / autoconf
Last active November 21, 2020 08:16
Cli autoconf
autoconf joe mongodb
automake jpeg mpd
boost json-c mpfr
brew-cask lame mpfr2
cask libassuan mplayer
clamp libevent mutt
cloog018 libffi newsbeuter
cmake libgcrypt openssl
dirmngr libgpg-error pandoc
drush libid3tag pdftohtml
@ahelja
ahelja / Bootstrap media query var
Created September 4, 2015 14:39
Bootstrap media query var
@media(max-width: @screen-xs-max){}
@media(min-width: @screen-sm-min){} /* deprecated: @screen-tablet, or @screen-sm */
@media(min-width: @screen-md-min){} /* deprecated: @screen-desktop, or @screen-md */
@media(min-width: @screen-lg-min){} /* deprecated: @screen-lg-desktop, or @screen-lg */
@ahelja
ahelja / arch
Last active November 21, 2020 08:16
Install arch
fdisk -l
cfdisk /dev/sda
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkswap /dev/sda1
@ahelja
ahelja / Material Design Login Form.markdown
Last active July 15, 2016 09:17
Material Design Login Form