Skip to content

Instantly share code, notes, and snippets.

View jkulak's full-sized avatar
🎯
Focusing

Kuba jkulak

🎯
Focusing
View GitHub Profile
@jkulak
jkulak / .gitconfig
Last active May 24, 2023 11:34
Git alias to open GitHub page for current repository and current branch
# place it for example in your `~/.gitconfig` file
# Usage:
# type `git openbranch` in a directory with a GitHub repository
[alias]
openbranch = "!f() { \
branch_name=$(git symbolic-ref --short HEAD); \
origin_url=$(git config --get remote.origin.url); \
if [[ \"$origin_url\" == git@github.com:* ]]; then \
repo_url=\"https://github.com/${origin_url:15}\"; \
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
{
"12123": {},
"sdc:": "sdfdsf",
"sfsdaf": "asdf",
"asdf": "asdfasf",
"{ssfdss}": {}
}
{
"12123": {},
"sdc:": "sdfdsf",
"sfsdaf": "asdf",
"asdf": "asdfasf",
"{ssfdss}": {}
}
@jkulak
jkulak / git loglive
Created November 22, 2016 23:08
Display git log live
#!/bin/bash
while :
do
clear
git --no-pager log --oneline --decorate --all --graph --date=relative $*
sleep 2
done
root@ubuntu-512mb-sfo1-01:/var/www/my-app/www# pm2 desc 0
Describing process with id 0 - name app
┌───────────────────┬──────────────────────────────────────────────────────┐
│ status │ online │
│ name │ app │
│ restarts │ 1 │
│ uptime │ 33s │
│ script path │ /var/www/my-app/releases/161024_234855/app.js │
│ script args │ N/A │
│ error log path │ /root/.pm2/logs/app-error-0.log │
@jkulak
jkulak / AllTests.php
Created July 5, 2011 08:33
Randomize your PHP unit tests order by adding a shuffle.
<?php
/**
* @author
*/
require_once 'Config.php';
class AllTests {
public static function suite() {