Skip to content

Instantly share code, notes, and snippets.

/*-
* #%L
* This file is part of tmxviewer-java.
* %%
* Copyright (C) 2010 - 2017 Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
* Copyright (C) 2016 - 2017 Mike Thomas <mikepthomas@outlook.com>
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
@caspg
caspg / 1_searchbar_live.ex
Last active May 1, 2024 01:44
Example of real-time search bar implementation in Phoenix LiveView and Tailwind. Working example on https://travelermap.net/parks/usa
defmodule TravelerWeb.SearchbarLive do
use TravelerWeb, :live_view
alias Phoenix.LiveView.JS
alias Traveler.Places
def mount(_params, _session, socket) do
socket = assign(socket, places: [])
{:ok, socket, layout: false}
end
@masudcsesust04
masudcsesust04 / change-apache-default-document-root-directory.md
Created July 28, 2017 05:57
4 steps to change your apache default document root directory

Step - 1: Create a directory

$ mkdir /home/masud/www/

Step - 2: Open apache2 configuration file

$ sudo nano /etc/apache2/apache2.conf 
const { getJson, getBuffer, command, isPrivate, sleep } = require("../lib/");
command({
pattern: "owner",
fromMe: isPrivate,
desc: "Izumi Owner",
type: "support",
}, async (message) => {
const name = 'Eʏᴘᴢ ☔', title = "Iᴢᴜᴍɪ Sᴜᴘᴘᴏʀᴛ🧚‍♂️", number = '917994489493', body = "Eʏᴘᴢ☔";
const image = "https://i.imgur.com/JS0TpvM.jpeg", sourceUrl = 'https://github.com/sataniceypz/Izumi-v2';
@m5lil
m5lil / reset.sh
Last active May 1, 2024 01:39
[reset jetbrains application trial] reset jetbrains ide evals v1.0.4 #others
#!/bin/bash
# reset jetbrains ide evals v1.0.4
OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
if [ "$OS_NAME" == "Darwin" ]; then
echo 'macOS:'
for PRD in $JB_PRODUCTS; do
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 1, 2024 01:38
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@epcim
epcim / pass-getting-started.md
Created March 17, 2023 13:39 — forked from layoaster/pass-getting-started.md
Cheat sheet/ getting-started guide to pass

pass cheat sheet/guide

Getting started guide to the unix password manager pass. Manage gpg encripted passwords (files) in a standar directory-like hierarchy. Such files can be copied or stored in a git repository.

Requirements

  1. Install [pass][pass-homepage] (standard unix password manager):

Ubuntu/Debian:

$ sudo apt-get install pass
@ConstantineK
ConstantineK / FeedsUpdate.reg
Created June 8, 2021 15:09
Remove windows new feeds
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds]
"EdgeMUID"="3F61B1E2FEFB605D2878BB1DFFEC6166"
"IsAnaheimEdgeInstalled"=dword:00000001
"osLocale"="en-US"
"IsFeedsAvailable"=dword:00000000
"ShellFeedsTaskbarViewMode"=dword:00000002
"HeadlinesOnboardingComplete"=dword:00000001
@rxaviers
rxaviers / gist:7360908
Last active May 1, 2024 01:31
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: