Skip to content

Instantly share code, notes, and snippets.

View sayakbiswas's full-sized avatar
🎯
Focusing

Sayak Biswas sayakbiswas

🎯
Focusing
View GitHub Profile
@sayakbiswas
sayakbiswas / opencl-error-codes.txt
Created November 22, 2019 02:56 — forked from bmount/opencl-error-codes.txt
OpenCL Error Codes
CL_SUCCESS 0
CL_DEVICE_NOT_FOUND -1
CL_DEVICE_NOT_AVAILABLE -2
CL_COMPILER_NOT_AVAILABLE -3
CL_MEM_OBJECT_ALLOCATION_FAILURE -4
CL_OUT_OF_RESOURCES -5
CL_OUT_OF_HOST_MEMORY -6
CL_PROFILING_INFO_NOT_AVAILABLE -7
CL_MEM_COPY_OVERLAP -8
CL_IMAGE_FORMAT_MISMATCH -9
@sayakbiswas
sayakbiswas / libinput-gestures.conf
Created August 6, 2019 06:07 — forked from SkyBehind/libinput-gestures.conf
My libinput config for multi-touch gestures (using Linux on Mac). I use 3-finger side swipe for forward and back, 3-finger up/down for showing all windows, and 4-finger up/down to switch desktops.
# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
@sayakbiswas
sayakbiswas / gist:84794a0c4e8f67b1a22cc5074ea65dab
Created May 10, 2017 04:07
Sync master and gh-pages branch for website
//Make and Push changes to origin/gh-pages
git push origin gh-pages
$ git checkout master // switch to the master branch
$ git rebase gh-pages // update master with changes from gh-pages
$ git push origin master // commit the changes
$ git checkout gh-pages // switch back to the gh-pages branch
@sayakbiswas
sayakbiswas / kde_neon_docker.sh
Created March 24, 2017 17:10
try kde neon in docker
sudo apt install docker.io xserver-xephyr
sudo usermod -aG docker $(whoami)
newgrp docker
docker pull kdeneon/plasma:user
Xephyr -screen 1024x700 :1 &
docker run -v /tmp/.X11-unix:/tmp/.X11-unix kdeneon/plasma:user
@sayakbiswas
sayakbiswas / Ubuntu Kernel Upgrader Script
Created October 29, 2016 18:21 — forked from mmstick/Ubuntu Kernel Upgrader Script
Asks the user whether they want to install the latest RC or stable, then downloads the correct kernel and installs it.
#!/bin/bash
cd /tmp
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi
function download() {
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4)
}
import React from "react";
import { render } from "react-dom";
const ParentComponent = React.createClass({
getDefaultProps: function() {
console.log("ParentComponent - getDefaultProps");
},
getInitialState: function() {
console.log("ParentComponent - getInitialState");
return { text: "" };