Skip to content

Instantly share code, notes, and snippets.

View Jorgelig's full-sized avatar
🎯
Focusing

Jorgelig Jorgelig

🎯
Focusing
View GitHub Profile
@VoidVolker
VoidVolker / powershell ftp http get unzip get-unzip.ps1
Created February 8, 2015 10:18
powershell ftp http get unzip get-unzip.ps1
# Download the file to a specific location
# get-unzip.ps1 "ftp://path/filename" "C:\path" "filename"
$clnt = new-object System.Net.WebClient
$url = $args[0]
$folder = $args[1]
$file = $args[2]
$path = $($args[1]+"\"+$args[2])
$clnt.DownloadFile($url,$path)
# Unzip the file to specified location
@CyberShadow
CyberShadow / .gitignore
Last active November 19, 2022 04:49
"Game About Squares" solver and solutions
/solve
*.exe
*.ilk
*.pdb
*.s
*.obj
@bjcull
bjcull / nav-wizard.bootstrap.css
Last active March 5, 2017 22:30
Wizard style navigation tabs for bootstrap
.nav-pills.nav-wizard > li {
position: relative;
overflow: visible;
border-right: 15px solid transparent;
border-left: 15px solid transparent;
}
.nav-pills.nav-wizard > li + li {
margin-left: 0;
}
.nav-pills.nav-wizard > li:first-child {
@alexandrevicenzi
alexandrevicenzi / HttpClientExtensions.cs
Created February 25, 2014 20:11
C# Post, Put and Patch as JSON async extensions
using System;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Threading.Tasks;
namespace MyProject.Extensions
{
public static class HttpClientEx
{
public const string MimeJson = "application/json";
@allenk1
allenk1 / BackuptoS3_Snapshots
Created January 20, 2014 02:37
Powershell script to backup flat files to S3 and then create EBS snapshots
# +---------------------------------------------------------------------------
# | File : BackuptoS3_Snapshots.ps1
# | Version : 1.0
# | Purpose : Backs up to S3 & creates EBS snapshots
# | Synopsis:
# | Usage : .\BackuptoS3_Snapshots.ps1
# +----------------------------------------------------------------------------
# |
# | File Requirements:
# | Must have AWS S3 CLI installed & Powershell tools
@leesmith
leesmith / simple-git-workflow.md
Last active December 30, 2023 23:37
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

jsWarrior.turn = function(warrior) {
// init status
if (!warrior._initialized) {
warrior._side_done = false;
warrior._last_health = 20;
warrior._initialized = true;
}
// check conditions
var health = warrior.getHealth(),
@wojtha
wojtha / tabs_with_tails.css
Last active December 18, 2015 21:09
Tabs as bubbles with tails - JQuery vs CSS version.
ul.tabs.primary li {
height: 30px;
line-height: 30px;
}
ul.tabs.primary li.active a:after {
content: "";
position: relative;
bottom: -4px;
border-style: solid;
border-width: 8px 8px 0;
@Mithrandir0x
Mithrandir0x / disable_wifi_hotspot.bat
Last active August 20, 2018 09:30
Two little batch files to create a cozy WiFi hotspot from the laptop Snatched from xda-developers, yet I don't remember the thread. Kudos to the author.
netsh wlan stop hostednetwork
pause
@winhamwr
winhamwr / tutorial.md
Created June 4, 2012 22:37
Creating a repeatable, dynamic site to site VPN with OpenSwan on Ubuntu 10.04 from Amazon EC2

Creating a dynamic site-to-site VPN with OpenSwan on Ubuntu 10.04 on EC2

Wes Winham [email protected]

There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.