Skip to content

Instantly share code, notes, and snippets.

View allanShady's full-sized avatar
🏠
Working from home

Allan Camilo allanShady

🏠
Working from home
View GitHub Profile
@allanShady
allanShady / build-and-lint.yml
Created March 20, 2022 08:41 — forked from YonatanKra/build-and-lint.yml
Reusable workflows
name: 🏗 Lint & Build
on: workflow_call
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
@allanShady
allanShady / git-helpers-commands.sh
Last active September 30, 2021 09:08
Usefull git commands
#!/bin/bash
# remove all local branches except develop
git branch | grep -v “develop” | xargs git branch -d
# undo the most recent git commit
git commit -m “core: commit message to undo live here”
# udoing the previous commit
git reset HEAD~
@allanShady
allanShady / GH001 fixed
Created July 30, 2021 10:28 — forked from apphands/GH001 fixed
To fix the Git error: "remote: error: GH001: Large files detected."
git filter-branch -f --index-filter 'git rm -r -f --ignore-unmatch <FILE_TO_REMOVE>' HEAD
#!/bin/bash
KC_REALM=<insert realm name here>
KC_USERNAME=<username here>
KC_PASSWORD=<password here>
KC_CLIENT=<client name here>
KC_CLIENT_SECRET=<client secret here>
KC_SERVER=<server address and port here>
KC_CONTEXT=auth
@allanShady
allanShady / ussd.cs
Created September 30, 2020 03:24 — forked from JaniKibichi/ussd.cs
USSD on c#
/*
A few things to note about USSD:
USSD is session driven. Every request we send you will contain a sessionId, and this will be maintained until that session is completed
You will need to let the Mobile Service Provider know whether the session is complete or not. If the session is ongoing, please begin your response with CON. If this is the last response for that session, begin your response with END.
If we get a HTTP error response (Code 40X) from your script, or a malformed response (does not begin with CON or END, we will terminate the USSD session gracefully.
using visual studio 2013 or Greater
go to file > new > project
in the projects window choose web under C#
select ASP.NET Web Application and name your project as you like