Skip to content

Instantly share code, notes, and snippets.

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

asd123ea asd123ea

🏠
Working from home
View GitHub Profile
@asd123ea
asd123ea / using-eslint-with-prettier.md
Created September 15, 2021 12:57 — forked from yangshun/using-eslint-with-prettier.md
Comparison between tools that allow you to use ESLint and Prettier together.
prettier-eslint eslint-plugin-prettier eslint-config-prettier
What it is A JavaScript module exporting a single function. An ESLint plugin. An ESLint configuration.
What it does Runs the code (string) through prettier then eslint --fix. The output is also a string. Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb.
How to use it Either calling the function in your code or via [prettier-eslint-cli](https://github.co
@asd123ea
asd123ea / GitDeleteCommands.ps1
Created April 14, 2021 20:04 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
@asd123ea
asd123ea / jwks.json
Created June 5, 2020 11:59
jwks.json test
{
"keys": [{
"e": "AQAB",
"kid": "ADHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ",
"kty": "RSA",
"n": "xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"
}]
}
18:26:55,675 WARN [org.jboss.modules.define] (ServerService Thread Pool -- 17) Failed to define class org.keycloak.subsystem.adapter.extension.KeycloakExtension in Module "org.keycloak.keycloak-wildfly-subsystem" version 6.0.1 from local module loader @38234a38 (finder: local module finder @63fbfaeb (roots: /home/bruno/Downloads/wildfly-19.1.0.Final/modules,/home/bruno/Downloads/wildfly-19.1.0.Final/modules/system/layers/base,/home/bruno/Downloads/wildfly-19.1.0.Final/modules/system/add-ons/keycloak)): org.jboss.modules.ModuleLoadError: org.jboss.metadata
at org.jboss.modules.Module.addPaths(Module.java:1266)
at org.jboss.modules.Module.link(Module.java:1622)
at org.jboss.modules.Module.getPaths(Module.java:1583)
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1606)
at org.jboss.modules.Module.loadModuleClass(Module.java:726)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.
@asd123ea
asd123ea / settings.json
Last active March 30, 2022 15:27
my vscode settings.json
{
"editor.tabSize": 2,
"[csharp]": {
"editor.insertSpaces": true,
"editor.tabSize": 4
},
"[javascript]": {
"editor.tabSize": 2
},
"[json]": {
/// <summary>
/// The 'AbstractFactory' interface.
/// </summary>
interface VehicleFactory
{
Bike GetBike(string Bike);
Scooter GetScooter(string Scooter);
}
@asd123ea
asd123ea / vim-cheatsheet.md
Created January 29, 2019 16:43 — forked from azadkuh/vim-cheatsheet.md
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@asd123ea
asd123ea / existing code to git repo
Created August 18, 2016 16:42 — forked from zenideas/existing code to git repo
Adding existing source to remote git repo
If you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/github, then push up your source)
1. Create the remote repository, and get the URL such as git://github.com/youruser/somename.git
2. If your local GIT repo is already set up, skips steps 2 and 3
3. Locally, at the root directory of your source, git init
4. Locally, add and commit what you want in your initial repo (for everything,
git add .
@asd123ea
asd123ea / gist:67288e02450ee4e0037c
Last active June 20, 2017 14:54 — forked from rafaelune/NuGet_Commands.md
NuGet basic commands

NuGet Basic Commands

Package Manager Console

List all available packages of a source.

  PM> Get-Package -ListAvailable

Install an older version of package