Screenshot:
use scrot -s
Video screen record:
* simplescreenrecorder
Trim / Compress video:
trim video: ffmpeg -i film.mkv -to 01:46:58 -c:v copy -c:a copy output.mp4
compress video: ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.m
Screenshot:
use scrot -s
Video screen record:
* simplescreenrecorder
Trim / Compress video:
trim video: ffmpeg -i film.mkv -to 01:46:58 -c:v copy -c:a copy output.mp4
compress video: ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.m
const coordinates = // array of lat, lngconst flightPath = new google.maps.Polyline({path: coordinates,geodesic: true,strokeColor: '#73B9FF',strokeOpacity: 1.0,strokeWeight: 4,icons: [{icon: {path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW},offset: '100%'}],map: this.theMap,
Google maps doc on custom symbols
Post on custom google maps markers
alert use window.sendErrorLink tag: use 'to' not 'a'li ul element needs a key property key={uuid} NOT key="{uuid}"button not a if it is a button.
.set and .get
yarn prettier --write find src | egrep jsx\\\\?$ --exclude passfort-types | grep -v passfort-types
This is what you wanted to do:update Exam_Result set score = 99 FROM Student s, Exam_Result er WHERE s.id = er.student_id and s.name='andy';
update Exam_Result set score = 99 FROM Student s WHERE s.id = Exam_Result.student_id and s.name='andy';
\copy Exam_Result (exam_id, student_id, score) to out.csv CSV; create table fix(exam_id int, student_id int, score int); \copy fix from out.csv CSV; update Exam_Result set score = f.score FROM fix f where f.exam_id=Exam_Result.exam_id and f.student_id=Exam_Result.student_id;
git clone https://github.com/mattiaslinnap/citymapper-web To pull a branch from someone else's github repo in to your local one: git pull [copy link from github] [branch name]
git pull git@github.com:adamcstephens/dust.git their-branch-name
git checkout -b many_changes
git push origin many_changes
git reset --hard HEADRevert to remote head:
git reset --soft HEAD^
git reset --hard ORIG_HEAD
git reset --hardgit checkout -- file
git log -3
git checkout TAGOR:git checkout master^ (go back 1 commit from master)git checkout HEAD^^ (go back 2 commits from where i am now)git checkout HEAD~3 (go back 3 commits from where i am now)Some commit has introduced a bug somewhere - lets go find it:
git checkout -b myfeature master
while(I have code):
(code)
git pull --rebase origin master
final merge:git checkout master
git merge myfeature OR git merge --no-ff myfeature OR git merge --squash myfeature
git branch -d myfeature
git push origin master
NOTES: --no-ff = No Fast forward = Keep the fact I worked on a separate branch.(default) = Fast Forward = Fast forward all changes in to the master. General Rule: Use --no-ff if you worked on something big and want the branch history.--squash = Squash this local branch's commits into 1. Makes git logs easier to readgit pull --rebase origin master = remove local changes. Pull master. Re-apply your changes
REBASE ADVICE:If you can rebase OFTEN do it. If there are many differences between master and your branch do a merge instead. Rebase is only for LOCAL branches not pushed ones.
REBASE WARN:
Delete remote branchgit push origin --delete
git mergetoolgitk
git checkout --ours filename.c
git checkout --theirs filename.c
git add filename.c
git commit -m "using theirs"