Skip to content

Instantly share code, notes, and snippets.

View cyberpau's full-sized avatar

cyberpau cyberpau

View GitHub Profile
@cyberpau
cyberpau / check-for-sp-names
Last active March 4, 2020 07:50
This is just my compilation of useful / awesome SQL Server scripts.
--CHECK FOR SP NAMES
SELECT ROUTINE_NAME, ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%OpenCount%'
AND ROUTINE_TYPE='PROCEDURE'
@DanAtkinson
DanAtkinson / Visual Studio solution file headers
Last active May 30, 2025 13:04 — forked from JamesSkemp/Visual Studio solution file headers
Visual Studio solution file headers - 2003, 2005, 2008, 2010, 2012, 2013, 2015, 2017, 2019, and 2022
== Visual Studio .NET 2003 (DO NOT COPY THIS LINE) ==
Microsoft Visual Studio Solution File, Format Version 8.00
# Visual Studio .NET 2003
VisualStudioVersion = 7.1
== Visual Studio 2005 (DO NOT COPY THIS LINE) ==
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
VisualStudioVersion = 8.0
@halberom
halberom / old.yml
Last active January 18, 2021 09:44
ansible - example of looping yum packages with different setting for one of them
- name: Install the required rpms
yum: name={{ item }} state=latest
with_items:
- wget
- git
- net-tools
- bind-utils
- iptables-services
- bridge-utils
- bash-completion
@DavideMontersino
DavideMontersino / private-fork.md
Last active September 27, 2025 23:26
How to fork to a private gitlab instance

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab

@benbalter
benbalter / gist.md
Last active May 24, 2025 09:51
Example of how to embed a Gist on GitHub Pages using Jekyll.

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.