Skip to content

Instantly share code, notes, and snippets.

View wingsuitist's full-sized avatar

Sam Felix wingsuitist

  • Basel
View GitHub Profile
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active April 26, 2024 07:30
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@Shourai
Shourai / Allowing SSH on a server with an active OpenVPN client.md
Last active October 5, 2023 06:32
Allowing SSH on a server with an active OpenVPN client

If you want to SSH to a VPS which is running openVPN do the following:
source: https://serverfault.com/questions/659955/allowing-ssh-on-a-server-with-an-active-openvpn-client

Enable

The problem is that the default gateway gets changed by OpenVPN, and that breaks your current SSH connection unless you set up appropriate routes before you start OpenVPN.

What follows works for me. It uses iptables and ip (iproute2). Below, it is assumed that the default gateway interface before OpenVPN is started is "eth0". The idea is to ensure that when a connection to eth0 is made, even if eth0 is not the default gateway interface anymore, response packets for the connection go back on eth0 again.

You could use the same number for the connection mark, firewall mark and routing table. I used distinct numbers to make the diffences between them more apparent.

@jorgeas80
jorgeas80 / launch.json
Last active August 27, 2017 16:47
launch.json file for debugging angular-cli applications in vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
image: node:latest
cache:
paths:
- node_modules/
- app/bower_components
deploy_production:
stage: deploy
environment: Production
@wingsuitist
wingsuitist / google.sh
Last active November 3, 2015 09:55
google search command function for bash
# google search command
# usage:
# google test
# google "site:9gag.com developers"
function google() {
curl -s --get --data-urlencode "q=$1" http://ajax.googleapis.com/ajax/services/search/web?v=1.0 \
| sed 's/"unescapedUrl":"\([^"]*\).*/\1/;s/.*GwebSearch",//';
}
How to find the next buzzword:
Lets take something that was around for a long time:
WCMS => web content management system
=> w == web - Today it’s not only web, so leave it away
CMS => content management system
=> c == content or social media, experience, learning, bla bla bla
=> so no c, it’s not right
XMS => x management system
$this->extPath = t3lib_extMgm::extPath($this->extKey);
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$view->setLayoutRootPath(t3lib_extMgm::extPath($this->extKey) . 'Resources/Private/Layouts/');
$view->setPartialRootPath(t3lib_extMgm::extPath($this->extKey) . 'Resources/Private/Partials/');
$view->setTemplatePathAndFilename($this->extPath . 'Resources/Private/Templates/File.html');
// initialize locallang
$view->getRequest()->setControllerExtensionName($this->extKey);
$view->assign('helloworld', $helloworld);