Skip to content

Instantly share code, notes, and snippets.

View gist:ca4b210b9b6b4a4cda898e74ca64ff38
flo@kubuntu:~/Documents/Wild Code School/quests/Git/my-website-oops$ git log --oneline
5d2a82d (HEAD -> master) added some content
94ccae9 modified title
7e4878a created index.html
flo@kubuntu:~/Documents/Wild Code School/quests/Git/my-website-oops$ git revert HEAD
[master 3d41213] Revert "added some content"
1 file changed, 11 insertions(+), 13 deletions(-)
rewrite index.html (71%)
flo@kubuntu:~/Documents/Wild Code School/quests/Git/my-website-oops$ git log --oneline
3d41213 (HEAD -> master) Revert "added some content"
barthflo / gist:c7e010127b3f572a393be58502aa0b38
Created Sep 17, 2020
WCS - Git/GitHUB 5 - Merge & Conflicts
View gist:c7e010127b3f572a393be58502aa0b38
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git pull
CONFLICT (content): Merge conflict in
Automatic merge failed; fix conflicts and then commit the result.
flo@kubuntu:~/Documents/Wild Code School/quests/Git/merge-conflicts$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
View WCS - Linux2 - Files and directories
// Find Command
flo@kubuntu:~/Documents/Wild Code School/quests/shell$ find planets
View gist:8263e455c790ec51873c88ac8c7ee3af
dpkg-mergechangelogs lesskey ps2pdf12 who
dpkg-name lesspipe ps2pdf13 whoami
dpkg-parsechangelog lexgrog ps2pdf14 whois
dpkg-query libnetcfg ps2pdfwr whoopsie
dpkg-scanpackages libreoffice ps2ps whoopsie-preferences
dpkg-scansources libwacom-list-local-devices ps2ps2 word-list-compress
dpkg-shlibdeps linguist ps2txt wordview
dpkg-source link psfaddtable wpa_passphrase
dpkg-split linkicc psfge
barthflo / gist:0ccdf17aa1266c5a774528dee07e291a
Last active Aug 8, 2020
Created a pseudo-code algorithm
View gist:0ccdf17aa1266c5a774528dee07e291a
start maxBuy (real money, real price)
int maxBuy ← 0
IF money AND price > 0
As long as money >= price
money ← money - price
maxBuy ← maxBuy+1
End As long as
End IF