Skip to content

Instantly share code, notes, and snippets.

View Terkea's full-sized avatar
🎯
Focusing

Marian Terchila Terkea

🎯
Focusing
View GitHub Profile
@vadimstasiev
vadimstasiev / Instructions
Created January 17, 2021 14:07
dummy 1080p display
sudo apt install xserver-xorg-video-dummy
sudo nano /etc/X11/xorg.conf
@vadimstasiev
vadimstasiev / gist:07ea6cd73e2d580c920168cc3be57be7
Created August 26, 2020 16:32
Import/Export localStorage
Export
copy(JSON.stringify(JSON.stringify(localStorage)));
Import
var data = JSON.parse(/*previously copied stringified JSON from clipboard*/);
Object.keys(data).forEach(function (k) {
localStorage.setItem(k, data[k]);
});
@heygrady
heygrady / start-server.js
Last active July 12, 2022 15:47
create-react-app ssr dev script
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
@justintv
justintv / .bashrc
Created August 17, 2009 00:53
Display git branch in bash prompt
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"