Skip to content

Instantly share code, notes, and snippets.

View sampixel's full-sized avatar
🎴
NIH syndrom affected

Samuel Reka sampixel

🎴
NIH syndrom affected
View GitHub Profile
@Haaroon
Haaroon / Rename branch from main to master
Last active August 2, 2023 21:32
Rename branch from main to master
git branch -m main master
git push -u origin master
git remote set-head origin master
# Now go to github in a browser,
# open the repo, click settings, branch and change the default branch to master
git push origin --delete main
-- Callback function to handle the upload events that are generated.
-- There will be several events: one to indicate the start and end of the
-- process and several to indicate the progress (depends on the file size).
-- Always test for your error conditions!
local function uploadListener( event )
if ( event.isError ) then
print( "Network Error." )
-- This is likely a time out or server being down. In other words,