Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Ram-Z / Movies
Last active April 8, 2022 19:31
Skaro
./10,000 BC (2008){unknown}[en].avi
./12 Angry Men (1957){1080p}{bluray}{h264}[en].mkv
./12 Years a Slave (2013){1080p}[en].mkv
./13 Assassins (2010){unknown}[en].avi
./1492: Conquest of Paradise (1992){1080p}{bluray}{h264}[en][de].mkv
./2001: A Space Odyssey (1968){1080p}{bluray}{ac3}[en][de].mkv
./2012 (2009){unknown}[en].avi
./21 (2008){1080p}{bluray}{h264}{ac3}[en][de].mkv
./22 Bullets (2010){720p}{h264}{dts}[en].mkv
./22 Jump Street (2014){1080p}{webdl}{h264}{aac}[en].mkv
[options]
HoldPkg = pacman glibc pacman-helpme
CleanMethod = KeepCurrent
Architecture = auto
Color
CheckSpace
SigLevel = Never
LocalFileSigLevel = Never
@Ram-Z
Ram-Z / commands
Last active January 12, 2016 21:08
gpg-agent forward
[13:30 ramsi@shada]% pgrep gpg-agent
[1][13:30 ramsi@shada]% gpg-connect-agent /bye
gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg-connect-agent: waiting for the agent to come up ... (5s)
gpg-connect-agent: connection to agent established
[13:31 ramsi@shada]% ll ~/foo
srwxr-xr-x 1 ramsi users 0 Apr 15 13:31 /home/ramsi/foo=
@Ram-Z
Ram-Z / -
Created April 22, 2015 16:48
Repository : desktop
Name : ktp-accounts-kcm
Version : 0.9.0-2
Description : KCM Module for configuring Telepathy Instant Messaging Accounts
Architecture : x86_64
URL : http://www.kde.org
Licences : GPL
Groups : kde-telepathy
Provides : None
Depends On : kdelibs ktp-common-internals ktp-contact-list
@Ram-Z
Ram-Z / test.sh
Last active August 29, 2015 14:19
#!/bin/bash
# takes a list of find patterns and transform it into arguments to find
find_args() {
echo -n "-name '$(glob "$1")'"; shift
while [[ $# -gt 0 ]]; do
echo -n " -o -name '$(glob "$1")'"; shift
done
}
diff --git a/chakra/bin/upload.sh b/chakra/bin/upload.sh
index edeca73..fb949b3 100755
--- a/chakra/bin/upload.sh
+++ b/chakra/bin/upload.sh
@@ -59,8 +59,8 @@ set_repos_and_sync_folder
prepare_targets() {
if [[ -n "$repo" ]]; then
- repos["${repo//[-]*/}"]=1
- eval "${repo//[-]*/}=( '${upload_list[@]}' )"
#!/bin/bash
# upload.sh
#
# Copyright © 2015 Samir Benmendil <[email protected]>
# Copyright © 2011-2012 Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
% while :;do;./a.out;echo;done
revents=0011
read 4095 bytes (4095/16384)
revents=0010
POLLHUP
revents=0011
read 4095 bytes (4095/16384)
revents=0010
POLLHUP
@Ram-Z
Ram-Z / space hotkey
Last active September 30, 2015 22:09
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 84288a0..9389897 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -61,6 +61,7 @@ static const KeycodeNames _keycode_to_name[] = {
{"NUM_MINUS", WKC_NUM_MINUS},
{"=", WKC_EQUALS},
{"-", WKC_MINUS},
+ {"SPACE", WKC_SPACE},
};
#!/bin/bash
dest=$1
for pkg in *.pkg.tar.xz; do
pkgbase=${pkg%.tar.xz}
sudo tar -xa --one-top-level=$pkgbase -f $pkg
sudo sed "s/^\(gitrepo = \).*/\1$dest/" -i $pkgbase/.PKGINFO
# zcat $pkgbase/.MTREE | sed "/^\.\/\.PKGINFO/{