Skip to content

Instantly share code, notes, and snippets.

View lcostea's full-sized avatar
💭
K8s, GitOps, go

Liviu Costea lcostea

💭
K8s, GitOps, go
View GitHub Profile
hset Users:email.lcostea@gmail.com FirstName "Liviu"
hset Users:email.lcostea@gmail.com LastName "Costea"
hset Users:email.lcostea@gmail.com City "Iasi"
hset Users:email.lcostea@gmail.com Country "RO"
hset Users:email.lcostea@gmail.com Job "Developer"
hset Users:developer@redis.io FirstName "Senior"
hset Users:developer@redis.io LastName "Developer"
hset Users:developer@redis.io City "Brasov"
hset Users:developer@redis.io Country "RO"
LPUSH Posts:Newest "Post1"
LPUSH Posts:Newest "Post2"
LPUSH Posts:Newest "Post3"
LPUSH Posts:Newest "Post4"
LPUSH Posts:Newest "Post5"
LPUSH Posts:Newest "Post6"
LPUSH Posts:Newest "Post7"
LPUSH Posts:Newest "Post8"
LPUSH Posts:Newest "Post9"
LPUSH Posts:Newest "Post10"
ZADD Posts:Top 1 "Post1"
ZADD Posts:Top 2 "Post2"
ZADD Posts:Top 1 "Post3"
ZADD Posts:Top 2 "Post4"
ZADD Posts:Top 1 "Post5"
ZADD Posts:Top 2 "Post6"
ZADD Posts:Top 1 "Post7"
ZADD Posts:Top 2 "Post8"
ZADD Posts:Top 1 "Post9"
ZADD Posts:Top 2 "Post10"
SADD Job:Developer "email.lcostea@gmail.com"
SADD Job:Developer "developer@redis.io"
SADD Job:Tester "tester@testing.com"
SADD City:Iasi "email.lcostea@gmail.com"
SADD City:Iasi "developer@redis.io"
SADD City:Brasov tester@testing.com
KEYS "Users*"
SCAN 0 MATCH "Users*" COUNT 5
LRANGE Posts:Newest 0 -1 --returning all
LRANGE Posts:Newest 0 15 --returning top 15, if exist
LTRIM Posts:Newest 0 9
ZRANGE Posts:Top 0 -1 WITHSCORES
local redisValue = redis.call('GET', KEYS[1])
if redisValue then
redis.call('EXPIRE', KEYS[1], ARGV[1])
return redisValue
end
return nil
setex LoggedInUser 60 "LiviuCostea"
local zsetMembers = redis.call('ZRANGE', KEYS[1], '0', '-1')
for _,member in pairs(zsetMembers) do
redis.call('ZINCRBY', KEYS[1], '1', member)
end
Zadd months 2 "March"
Zadd months 1 "February"
Zadd months 0 "January"
Zrange months 0 -1 WITHSCORES
local apiCallCount
apiCallCount = redis.call("incr", KEYS[1])
if tonumber(apiCallCount) == 1 then
redis.call("expire",KEYS[1], 60)
end
return apiCallCount
var buildTasks = [];
files.forEach(function (sassFile) {
var buildTaskName = 'build-sass-' + sassFile;
gulp.task(buildTaskName, function () {
return gulp.src(sassFile)
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(websiteConfig.sassFolder));
});
sudo yum -y install epel-release
sudo yum -y install python-pip python-devel gcc git libffi-devel openssl-devel
sudo `which pip` install --upgrade pip
sudo `which pip` install ansible "pywinrm>=0.1.1"
sudo yum -y install krb5-devel krb5-libs krb5-workstation