Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Deepak Jois deepakjois

🎯
Focusing
Block or report user

Report or block deepakjois

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@deepakjois
deepakjois / deps.txt
Last active Oct 30, 2018
List of PHP and Nginx deps on Tapwage Admin Server
View deps.txt
ubuntu@ip-172-31-36-148:~/taprecruit-app$ apt list --installed | grep php
dh-php/xenial,now 0.10 all [installed,upgradable to: 0.33+ubuntu16.04.1+deb.sury.org+1]
php/xenial,now 1:7.0+35ubuntu6 all [installed,upgradable to: 2:7.2+67+ubuntu16.04.1+deb.sury.org+0]
php-apcu/now 5.1.8+4.0.11-1+deb.sury.org~xenial+1 amd64 [installed,upgradable to: 5.1.12+4.0.11-1+ubuntu16.04.1+deb.sury.org+10]
php-bcmath/xenial,now 1:7.0+35ubuntu6 all [installed,upgradable to: 2:7.2+67+ubuntu16.04.1+deb.sury.org+0]
php-common/now 1:52+deb.sury.org~xenial+1 all [installed,upgradable to: 2:67+ubuntu16.04.1+deb.sury.org+0]
php-curl/xenial,now 1:7.0+35ubuntu6 all [installed,upgradable to: 2:7.2+67+ubuntu16.04.1+deb.sury.org+0]
php-dev/xenial,now 1:7.0+35ubuntu6 all [installed,upgradable to: 2:7.2+67+ubuntu16.04.1+deb.sury.org+0]
php-gd/xenial,now 1:7.0+35ubuntu6 all [installed,upgradable to: 2:7.2+67+ubuntu16.04.1+deb.sury.org+0]
php-gearman/now 2.0.3+1.1.2+-1+deb.sury.org~xenial+1 amd64 [installed,upgradable to: 2.0.5+1.1.2-2+ubuntu16
View gist:fbbde3df4ab2b9003500918d20023a73
### Keybase proof
I hereby claim:
* I am deepakjois on github.
* I am debugjois (https://keybase.io/debugjois) on keybase.
* I have a public key whose fingerprint is B745 7F64 BD5B D5AD 04AC 3A19 77DA 8872 520D A130
To claim this, I am signing this object:
@deepakjois
deepakjois / js2lua.rb
Last active Jun 24, 2017
Crude regexes for js to lua conversion
View js2lua.rb
File.open(ARGV[0]).each { |line|
line.gsub!(/;/,"")
line.gsub!(/let /, "local ")
line.gsub!(/\/\/ /, "-- ")
line.gsub!(/:/, " =")
line.gsub!(/export default/, "return")
line.gsub!(/export /, "")
line.gsub!(/new ([a-zA-Z0-9.]+)\(/, '\1.new(')
line.gsub!(/^import (.*) from (.*)$/, 'local \1 = require(\2)')
line.gsub!(/([x\d]+) = {/, '[\1] = {')
View define_font.lua
local metrics = {}
local f = fontloader.open ("NotoNastaliqUrdu-Regular.ttf")
local fonttable = fontloader.to_table(f)
fontloader.close(f)
metrics.backmap = fonttable.map.backmap
for i,v in ipairs(metrics.backmap) do
debug.log("glyph id: %d, backmap: U+%04X", i, v)
end
-- Notice below how all the unencoded glyphs are being assigned a code starting from 0x10001 (65537) onwards. Why is that?
View loader.lua
local make_loader = function(path, pos, loadfunc)
local default_loader = package.searchers[pos]
local loader = function(name)
local file, _ = package.searchpath(name,path)
if not file then
local msg = "\n\t[lualoader] Search failed"
local ret = default_loader(name)
if type(ret) == "string" then
return msg ..ret
elseif type(ret) == "nil" then
View gist.md

बारबरा हैरिस व्हाइट और उनके साथी शोधार्थियों ने दलितों और आदिवासियों की व्यापार में कम भागीदारी के पीछे के कारणों को जानने के लिए ग़रीबी स्तर, शैक्षिक स्तर और भूमि स्वामित्व जैसे कारकों का विश्लेषण किया है लेकिन उनको इन कारकों और उद्यम स्वामित्व की दरों के बीच कोई ख़ास सम्बंध नहीं मिला। इस से पता चलता है कि उद्यम स्वामित्व में दलितों और आदिवासियों की कम भागीदारी मात्र अन्य प्रकार की विषमताओं का प्रभाव न होकर निजी अर्थ व्यवस्था में सक्रिय भेदभावपूर्ण प्रक्रियाओं का परिणाम है।

@deepakjois
deepakjois / shell_output.txt
Created Dec 9, 2015
Luarocks build time for luaharfbuzz
View shell_output.txt
~ time luarocks install luaharfbuzz
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/luaharfbuzz-0.0.1-1.src.rock...
Using https://luarocks.org/luaharfbuzz-0.0.1-1.src.rock... switching to 'build' mode
Warning: variable CFLAGS was not passed in build_variables
mkdir -p build
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fpic -std=c99 `pkg-config --cflags harfbuzz` `pkg-config --cflags lua` -o build/luaharfbuzz.o -c src/luaharfbuzz/luaharfbuzz.c
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fpic -std=c99 `pkg-config --cflags harfbuzz` `pkg-config --cflags lua` -o build/blob.o -c src/luaharfbuzz/blob.c
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fpic -std=c99 `pkg-config --cflags harfbuzz` `pkg-config --cflags lua` -o build/face.o -c src/luaharfbuzz/face.c
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fpic -std=c99 `pkg-config --cflags harfbuzz` `pkg-config --cflags lua` -o build/font.o -c src/luaharfbuzz/font.c
@deepakjois
deepakjois / harfbuzz_api.txt
Created Dec 4, 2015
All functions in the Harfbuzz API
View harfbuzz_api.txt
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_create
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_create_sub_blob
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_get_empty
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_reference
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_destroy
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_set_user_data
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_get_user_data
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_make_immutable
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_is_immutable
/usr/local/include/harfbuzz/hb-blob.h:hb_blob_get_length
@deepakjois
deepakjois / scratch.csv
Created Nov 27, 2015
Tab-delimited file
View scratch.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
abc def
fgh ijk
@deepakjois
deepakjois / launched.json
Created Oct 16, 2015
Launched On Demand courses on Coursera
View launched.json
[ "modern-art-ideas"
, "evolvinguniverse"
, "intro-to-big-data"
, "bioinformatics-methods-1"
, "2d-cad"
, "calculus-diferansiyel-hesap"
, "epidemiology"
, "zhichang-suyang"
, "calculo-4"
, "big-ideas"
You can’t perform that action at this time.