Skip to content

Instantly share code, notes, and snippets.

View alejandromav's full-sized avatar
🐦
\' ;drop table users; --

Alejandro Martin alejandromav

🐦
\' ;drop table users; --
View GitHub Profile
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@chiragtoor
chiragtoor / text_example.ex
Last active January 9, 2020 21:37
Example Elixir code for sending a text message through ExTwilio
def send_text_message(phone_number, message) do
ExTwilio.Api.create(ExTwilio.Message,
[to: phone_number,
from: Application.get_env(:ex_twilio, :send_number),
body: message])
end