Skip to content

Instantly share code, notes, and snippets.

View jonasermert's full-sized avatar
:octocat:

Jonas jonasermert

:octocat:
View GitHub Profile
/*
author: Jonas Ermert
year: 2022
*/
package main
import (
"fmt"
"golang.org/x/crypto/bcrypt"
@Da9el00
Da9el00 / Main.java
Created September 24, 2021 14:25
How to connect to An API using Java
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
public class Main {
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.14.2
container_name: gitea
alexcvzz.vscode-sqlite
andys8.jest-snippets
apollographql.vscode-apollo
austincummings.razor-plus
bobsparadox.seti-black
BriteSnow.vscode-toggle-quotes
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
@ertwro
ertwro / profiles.json
Last active May 22, 2019 05:00
Come and get your config while is hot! ...You realize you need to change the fonts to fonts in your system, right? also the images go in the same folder as the `profiles.json` file. In my case it was %AppData%\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState
{
"defaultProfile": "{c79635af-91f3-433b-9164-e3462ddfe479}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"experimental_showTabsInTitlebar": true,
"requestedTheme": "dark",
"profiles": [
{
@joelekstrom
joelekstrom / open_xcode_file_in_emacs.sh
Last active January 30, 2019 23:04
A bash script that opens the file currently open in Xcode, in Emacs, keeping region
#!/bin/bash
# Use AppleScript to get the open file and selection from Xcode
file_and_selection=$(osascript\
<<EOF
tell application "Xcode"
set current_document to document 1 whose name ends with (word -1 of (get name of window 1))
set current_document_path to path of current_document
set selected_range to selected character range of current_document
set selection_start to first item of selected_range
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git
@bradtraversy
bradtraversy / myscript.sh
Last active July 16, 2024 10:39
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@rsKliPPy
rsKliPPy / am-night.user.js
Last active March 2, 2018 02:23
ViolentMonkey script to add a night theme to AlliedModders Forums.
// ==UserScript==
// @name AlliedModders Night Theme
// @namespace github.com/rsKliPPy/
// @match https://forums.alliedmods.net/*
// @version 1.3.0
// @downloadURL https://gist.githubusercontent.com/rsKliPPy/4d4281e6ac447b601958d2e6c4971c30/raw
// @homepageURL https://github.com/rsKliPPy
// @grant none
// @run-at document-start
// ==/UserScript==
@bantya
bantya / stop_badrabbit.bat
Last active September 17, 2021 16:00
bat: Stop BadRabbit Ransomeware
@echo off
:: This is not my code, the BadRabbit Ransomeware was posted on a following video:
:: https://www.youtube.com/watch?v=Y6WOpE92vKc
:: Idea for Petya Ransomeware was given on:
:: https://www.bleepingcomputer.com/news/security/vaccine-not-killswitch-found-for-petya-notpetya-ransomware-outbreak/
:: I just made this to make it available easily.
:: For BadRabbit
type NUL > %windir%\cscc.dat