Skip to content

Instantly share code, notes, and snippets.

Silviu Vulcan silviuvulcan

Block or report user

Report or block silviuvulcan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@silviuvulcan
silviuvulcan / Terminal.sublime-settings
Created Mar 22, 2017 — forked from tylersticka/Terminal.sublime-settings
Sublime Text Terminal settings for Mintty
View Terminal.sublime-settings
{
"terminal": "C:/cygwin/bin/mintty.exe",
// The first and third commands make sure your bin comes through
// The second one prevents a directory change to home
"parameters": ["/bin/env", "CHERE_INVOKING=1", "/bin/bash", "-l"]
}
@silviuvulcan
silviuvulcan / umlaut.sh
Created Oct 25, 2016
Remove umlauts and other special characters from filenames
View umlaut.sh
#!/bin/bash
type iconv >/dev/null 2>&1 || { echo >&2 "iconv has to be installed. Aborting."; exit 1; }
find . -type f | while read FILE; do
if [ -f "$(echo "$FILE" | iconv -f utf8 -t ascii//TRANSLIT)" ]; then
echo "No rename required: $FILE"
else
mv -v "$FILE" "$(echo "$FILE" | iconv -f utf8 -t ascii//TRANSLIT)"
fi
done
@silviuvulcan
silviuvulcan / reclaimWindows10.ps1
Created Jul 12, 2016 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Forked from http://pastebin.com/gQxCUkLP
View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
View cygnative.c
/*-
* Copyright (c) 2009 Frank Behrens <frank@pinky.sax.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@silviuvulcan
silviuvulcan / imgur-desc-down.py
Created Jun 5, 2016
Python script to download imgur album together with descritpions. Quick and dirty (api, secret and album id to set in file before running)
View imgur-desc-down.py
#!/usr/bin/python
import textwrap
from urllib import urlretrieve
from progressbar import ProgressBar, Percentage, Bar
from imgurpython import ImgurClient
# API ID AND SECRET - REQUIRED
@silviuvulcan
silviuvulcan / edit.sh
Created Jun 2, 2016
Sniped used to edit configuration files using a template like file variable=value
View edit.sh
#APPLICATION_ENV_SETTINGS is a file containing settings in format file variable=value
print_msg "Applying custom settings"
tr -d '\r' < "${APPLICATION_ENV_SETTINGS}" | while IFS='= ' read TARGETFILE VARNAME VARVALUE; do
# Don't declare variables here, you are in a sub-shell that dies
# when exitting while.
if [[ ! $TARGETFILE =~ ^\ *# && -n $TARGETFILE ]]; then
VARVALUE="${VARVALUE%%\#*}" # Del in line right comments
VARVALUE="${VARVALUE%%*( )}" # Del trailing spaces
VARVALUE="${VARVALUE%\"*}" # Del opening string quotes
@silviuvulcan
silviuvulcan / get-aix-deps.sh
Last active Jul 15, 2016
Script to get package deps of one AIX open source package. Parameter is url of deps file from http://www.oss4aix.org/download/rpmdb/deplists/aix71/
View get-aix-deps.sh
#!/bin/bash
curl -s $1 | while read i; do curl http://www.oss4aix.org/download/everything/RPMS/$i -o $i;done
curl http://www.oss4aix.org/download/everything/RPMS/$( basename $1 | sed -e 's/\.ppc\.deps/\.ppc\.rpm/') -o $( basename $1 | sed -e 's/\.ppc\.deps/\.ppc\.rpm/')
@silviuvulcan
silviuvulcan / imgur-down.py
Last active May 20, 2016
Download from imgur using api and saving descriptions together with pictures. Downloads in current folder. You need to register for a client id and secret
View imgur-down.py
#!/usr/bin/python
import textwrap
from urllib import urlretrieve
from progressbar import ProgressBar, Percentage, Bar
from imgurpython import ImgurClient
@silviuvulcan
silviuvulcan / joomlaupdate
Created Dec 23, 2015 — forked from renekreijveld/joomlaupdate
This bash script will update your Joomla 2.5/3.1 website to the latest Joomla version. It does this by automatically downloading the correct update zipfile from Joomla.org. The script also executes the sql update commads (if needed). If specified joomlaupdate will make a backup of your website and database before updating. Joomlaupdate can also …
View joomlaupdate
#!/bin/sh
# joomlaupdate
# Updates your Joomla 2.5/3.1 website to the latest version.
#
# Usage: joomlaupdate [-s] [-b] [-h] [-l]
#
# Default action is verbose on, no backup.
# -s Silent. Do not display any informational messages.
# -b Backup. Create a backup before updating.
You can’t perform that action at this time.