Skip to content

Instantly share code, notes, and snippets.

View ousid's full-sized avatar
🔥
Building Livewire Toolkit

Oussama ousid

🔥
Building Livewire Toolkit
View GitHub Profile
@saineshmamgain
saineshmamgain / app.js
Created May 5, 2020 04:06
Setting up laravel-websockets on production server using nginx proxy with letsencrypt ssl
window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
wsHost: window.location.host,
wsPort: 80,
wssPort: 443,
disableStats: true,
enabledTransports: ['ws', 'wss'],
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
});
@dllud
dllud / xmpp-servers-tor-onion-service.md
Last active November 3, 2024 16:21
Public XMPP servers with Tor Hidden Service

Public XMPP servers with Tor Onion Service

This is a tentative list of public XMPP (Jabber) servers that provide a Tor Onion Service (.onion address) for connections from within the Tor network. By public I mean, servers that are free for everyone to use and place no barriers on registration.

Clearnet domain Tor Hidden Service In-Band registration XEP compliance
5222.de fzdx522fvinbaqgwxdet45wryluchpplrkkzkry33um5tufkjd3wdaqd.onion links to web form 100%
cock.li xdkriz6cn2avvcr2vks5lvvtmfojz2ohjzj4fhyuka55mvljeso2ztqd.onion disabled 30%
dismail.de 4colmnerbjz3xtsjmqogehtpbt5upjzef57huilibbq3wfgpsylub7yd.onion disabled 100%
@gunjanpatel
gunjanpatel / revert-a-commit.md
Last active October 24, 2024 22:39
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32: