Skip to content

Instantly share code, notes, and snippets.

View simonwuelker's full-sized avatar

Simon Wülker simonwuelker

  • Karlsruher Institut für Technologie
  • Orion Molecular Cloud Complex
View GitHub Profile
@awidegreen
awidegreen / vim_cheatsheet.md
Last active February 6, 2025 21:41
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@cobyism
cobyism / gh-pages-deploy.md
Last active March 12, 2025 14:45
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@joepie91
joepie91 / vpn.md
Last active March 12, 2025 09:58
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@mdavezac
mdavezac / MPI_benchmark_example
Last active January 23, 2025 02:02
google/benchmark example with MPI
# for gist naming purposes
@wikrie
wikrie / fritzbox-cert-update.sh
Last active March 8, 2025 16:22
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
## this little Gist is for Copy the Letsencrypt Cert from an Linux machine (e.g. Raspberry PI or Synology NAS)
## to the router (Fritzbox).
## It is usefull to be able to speak to the Router over DDNS without any Cert issue in the Browser.
## thanks to https://gist.github.com/mahowi for the perfect Idea
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal.
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view
## it is always a good idea to have a non default user name. And as normaly a Fritz Box
## is connected to the Internet, the prefered method should be WITH Username.
@jweinst1
jweinst1 / get_unix_time_insecs.rs
Created May 1, 2019 06:55
Using rust to get the unix time in seconds as a number.
use std::time::{SystemTime};
fn get_sys_time_in_secs() -> u64 {
match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
Ok(n) => n.as_secs(),
Err(_) => panic!("SystemTime before UNIX EPOCH!"),
}
}
@nstarke
nstarke / resize-ghidra-gui.md
Last active February 24, 2025 18:24
Resize Ghidra GUI for High DPI screens

Resize Ghidra for High DPI screens

If you run Ghidra on a high DPI screen, you will probably find the GUI to be scaled down so small to be almost of no use.

There is a setting that you can adjust to scale the Ghidra GUI:

in $GHIDRA_ROOT/support is a file named launch.properties. In this launch.properties file is the following configuration key:

VMARGS_LINUX=-Dsun.java2d.uiScale=1
@MadaraUchiha
MadaraUchiha / github-markdown-linkify.user.js
Created June 10, 2020 13:40
Add mentions to markdown in GitHub
// ==UserScript==
// @name Linkify Markdown Mentions - github.com
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// @version 1.0
// @author Madara Uchiha
// @description 6/10/2020, 4:29:55 PM
// ==/UserScript==
@0xdevalias
0xdevalias / bypassing-cloudflare-akamai-etc.md
Last active March 4, 2025 07:40
Some notes/resources for bypassing anti-bot/scraping features on Cloudflare, Akamai, etc.