Skip to content

Instantly share code, notes, and snippets.

Avatar

beppe9000

View GitHub Profile
@beppe9000
beppe9000 / choco.bat
Created Feb 12, 2022 — forked from avenet/choco.bat
Installs Chocolatey and my preferred Windows programs
View choco.bat
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco install Atom
choco install notepadplusplus.install
choco install 7zip
choco install flashplayerplugin
choco install vlc
choco install nodejs
choco install vcredist2010
choco install PowerShell
View batchparams.bat
@echo off
:: http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx
echo %%~1 = %~1
echo %%~f1 = %~f1
echo %%~d1 = %~d1
echo %%~p1 = %~p1
echo %%~n1 = %~n1
echo %%~x1 = %~x1
echo %%~s1 = %~s1
echo %%~a1 = %~a1
@beppe9000
beppe9000 / private_fork.md
Created Jan 31, 2022 — forked from 0xjac/private_fork.md
Create a private fork of a public repository
View private_fork.md

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@beppe9000
beppe9000 / whitelist.py
Last active Jan 22, 2022 — forked from 0x9900/whitelist.py
Extract the IP addresses from SPF records.
View whitelist.py
#!/usr/bin/env python
# Purpose: Print the list of ip addresses from SPF records
# Author: beppe9000
import dns
from dns import resolver
from collections import defaultdict
import re
import sys
@beppe9000
beppe9000 / DllInjector.cs
Created Apr 28, 2021 — forked from ultratrunks/DllInjector.cs
Clean class in C# used for DLL injection
View DllInjector.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace DllInjector
{
public static class DllInjector
{
@beppe9000
beppe9000 / ghetto.md
Last active Nov 20, 2020 — forked from dusta/Deploy_on_cPanel.md
Ghetto Deployment
View ghetto.md

Deploy your site with git on cPanel

The most important: You must have shell access!

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
  • your (PHP) scripts are served from /var/www/html/
@beppe9000
beppe9000 / LICENSE.txt
Created Aug 19, 2020 — forked from azproduction/LICENSE.txt
A turing machine in 79! bytes of javascript
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@beppe9000
beppe9000 / JunctionPoint.cs
Last active Apr 10, 2020 — forked from LGM-AdrianHum/JunctionPoint.cs
Create, Delete and Examine Junction Points in C#
View JunctionPoint.cs
// File: RollThroughLibrary/CreateMaps/JunctionPoint.cs
// User: Adrian Hum/
//
// Created: 2017-11-19 2:46 PM
// Modified: 2017-11-19 6:10 PM
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Runtime.InteropServices;
@beppe9000
beppe9000 / # Peachpie.NET Example
Last active Mar 20, 2020
Minimum Complete usage of compiling a PHP script with Peachpie.NET
View # Peachpie.NET Example
Run the `START.BAT`file to compile the php script and run the resulting exe.
This is the final example from https://github.com/peachpiecompiler/peachpie/issues/708
@beppe9000
beppe9000 / console.js
Last active Mar 17, 2020
Selects "Show Me" for all search fields of phonescoop.com search. Copy/paste the code in the devtools js console to use.
View console.js
(function() { //@see https://stackoverflow.com/a/26573281/3389585
function l(u, i) {
var d = document;
if (!d.getElementById(i)) {
var s = d.createElement('script');
s.src = u;
s.id = i;
d.body.appendChild(s);
}
}