This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# non root user example for alpine | |
# | |
# usage: | |
# $ docker build --build-arg "USER=someuser" --tag test . | |
# $ docker run --rm test | |
FROM alpine | |
ARG USER=default | |
ENV HOME /home/$USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stevenkohlmeyer.com/fixing-palm-detect-ubuntu-14-04/ | |
``` | |
xinput list | |
xinput list-props 13 | |
xinput set-prop 13 "Synaptics Palm Detection" 1 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all kernels installed | |
``` | |
dpkg -l linux-image-\* | grep ^ii | |
``` | |
# Remove old kernels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming our last package version is v1.0.0 | |
# this will increment the package.json version, and commit change | |
# it's equivalent to git tag v1.0.1, update manualy package.json and git add package.json && git commit -m "bump version" | |
npm version patch | |
# then we need to push it into our repo | |
git push v1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## generate modeline | |
``` | |
cvt 1600 900 60 | |
``` | |
outputs: | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var os = require("os"); | |
var hostname = os.hostname(); | |
var pid = process.pid; | |
var server = http.createServer(function (request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.end("Node example works [V2] @"+hostname+"/"+pid+" \n"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install redmine_bitbucket plugin, by following instructions in README | |
https://bitbucket.org/steveqx/redmine_bitbucket | |
# create new ssh key | |
ssh-keygen -t rsa -C "contact@example.com" | |
# add public key to your bitbucket account as deploy key | |
cat ~/.ssh/id_rsa.pub | |
# answer yes to add bitbucket to known hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list displays and possible resolutions of active displays | |
xrandr | |
# set display port 1 to 3440x1440@29hz | |
xrandr --output DP1 --mode 3440x1440 --rate 29 | |
# set display port 1 to 2560x1080@59hz | |
xrandr --output DP1 --mode 2560x1080 --rate 59 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
gnome-shell --replace | |
``` | |
http://superuser.com/questions/570194/how-do-i-restart-a-frozen-screen-in-ubuntu-without-losing-any-open-windows | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("img.avatar.js-action-profile-avatar").attr("src", ""); | |
$("span.username b").text("user"); | |
$("strong.fullname").html("user"); |
NewerOlder