Skip to content

Instantly share code, notes, and snippets.

View jonasermert's full-sized avatar
:octocat:

Jonas jonasermert

:octocat:
View GitHub Profile
@bantya
bantya / stop_badrabbit.bat
Last active July 27, 2024 16:49
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
@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==
@atomjar
atomjar / product_style
Last active August 13, 2024 11:34
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
@bradtraversy
bradtraversy / myscript.sh
Last active September 24, 2026 21:44
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
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
@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
@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": [
{
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
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.14.2
container_name: gitea
@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 {