Skip to content

Instantly share code, notes, and snippets.

View jb0hn's full-sized avatar
📓
Learning a lot of new stuff!

Józef jb0hn

📓
Learning a lot of new stuff!
View GitHub Profile
@levlaz
levlaz / font-awesome-and-laravel.md
Last active October 9, 2023 11:47
How To Use Font Awesome With Laravel

For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.

Install Font Awesome with NPM

npm install font-awesome

Import font-awesome in your app.scss file

@nicobytes
nicobytes / deploy-gh.sh
Last active August 3, 2020 20:14
Deploy gh-pages ionic pwa
#!/bin/bash
git branch -D gh-pages
git push origin --delete gh-pages
git checkout -b gh-pages
ionic build --prod
find . -type d ! -path './www*' ! -path './.git*' ! -path '.' | xargs rm -rf
rm -r *.*
mv www/* .
rm -rf www
git add .
@randName
randName / SolarizedDark.theme
Last active January 22, 2024 11:25
Solarized Dark Theme for Windows (using High Contrast mode)
[Theme]
DisplayName=Solarized Dark
[Control Panel\Desktop]
PicturePosition=4
[VisualStyles]
Path=
ColorStyle=NormalColor
Size=NormalSize
@gunjanpatel
gunjanpatel / revert-a-commit.md
Last active November 11, 2024 17:49
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:

@macbre
macbre / book.md
Last active August 21, 2024 14:59
lubimyczytac.pl "API"
$ curl 'http://lubimyczytac.pl/ksiazka/264290' -s | grep -E '<meta|<link|sBookDescriptionLong'
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="pl" />
		<meta name="Description" content="Poznań, początek 1924 roku. Mieszkańcami miasta wstrząsa fala brutalnych morderstw. Z rąk nieznanego sprawcy giną prostytutki. Śledztwo prowadzą komisarz Antoni Fischer oraz jego zastępca Albin Siewierski. Ten pierwszy to dystyngowany i elokwentny oficer n" />
		<meta name="Keywords" content="" />
				<meta name="google-site-verification" content="mJetwv1NM4QIfTB8l0pw3d1JeakCq5rIuiF-7rdQb3w" />
        <meta name="LC_app_ver" content="83e373cf5c21cd1216a520fdc6bf7838" />
		<meta name="all-apver" content="426076ebc703102e66f5722e4abf70b380eec15e" />
		<link rel="stylesheet" type="text/css" media="screen, print" href="http://s.lubimyczytac.pl/skins/lc/css/lc_all_skin_lc.min.css?2015100802" />
@speric
speric / gist:6096965
Created July 28, 2013 01:20
vimtutor Lesson Summaries
Lesson 1 SUMMARY
1. The cursor is moved using either the arrow keys or the hjkl keys.
h (left) j (down) k (up) l (right)
2. To start Vim from the shell prompt type: vim FILENAME <ENTER>
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.
OR type: <ESC> :wq <ENTER> to save the changes.
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]: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