Skip to content

Instantly share code, notes, and snippets.

View yavuztas's full-sized avatar
🏠
Working from home

Yavuz Tas yavuztas

🏠
Working from home
View GitHub Profile
@pishangujeniya
pishangujeniya / Ubuntu-Mojave-Mac-OS-Theme.md
Last active February 3, 2023 02:24
Mac OS Mojave Theme for Ubuntu

Ubuntu To Mac OS Mojave theme

Mc OS Mojave Ubuntu Look alike


Pre-requisites

  • sudo apt update
  • sudo apt install gnome-tweaks
  • sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0
@yavuztas
yavuztas / git-pick-specific-commits-from-another-branch.txt
Created October 13, 2019 10:52
git cherry-pick some commits from another branch
# if you want to pick some commits from <some-branch> to master for example,
# switch to master
git checkout master
# pick the commits you want to apply to master
git cherry-pick a52afa1
git cherry-pick 08f39f7
# if there is a conflict, resolve and commit
# only if you do not add the original repository as upstream
git remote add upstream https://github.com/original_github_username/original_github_repo_name.git
# then fetch and create a new branch for your pr
git fetch --all
git checkout -b new-branch-name-for-pr upstream/master
# pick the commits you want to include in your pr
git cherry-pick a52afa1
git cherry-pick 08f39f7
@yavuztas
yavuztas / index.html
Last active February 7, 2023 17:25
remove-rubber-band-web-apps-ios
<!DOCTYPE html>
<html>
<head>
<title>Remove rubberband scrolling from web apps on mobile safari and standalone (iOS)</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<style>
html, body {margin: 0; padding: 0; width:100%; height:100%; overflow: hidden; background: #333}
p.center {
jar xf myfile.jar
@yavuztas
yavuztas / git_undo_merge.txt
Created June 13, 2017 11:27
Git undo a branch merge
With git log check which commit is one prior the merge. Then you can reset it using:
git reset --hard commit_sha
There's also another way
git reset --hard HEAD~1
will get you back 1 commit.
Be aware that any modified and uncommitted/unstashed files will be reset to their unmodified state.
To keep them either stash changes away or see --merge option below.
@michaellihs
michaellihs / spring-boot-testing.md
Last active October 22, 2022 19:21
Spring Boot Testing

Spring Boot Testing

Using Configuration in Tests

The following snippets loads the application context with the configuration given in TestConfiguration.class

@RunWith(SpringRunner.class)
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream