Skip to content

Instantly share code, notes, and snippets.

View derekbtw's full-sized avatar
🌎
Internet explorer

Derek Bytheway derekbtw

🌎
Internet explorer
View GitHub Profile

Git Cheat Sheet

Commands

Getting Started

git init

or

@johnpapa
johnpapa / .gitclone
Last active April 14, 2017 13:56
git clone
# A better git clone
# clones a repository, cds into it, and opens it in my editor.
#
# Based on https://github.com/stephenplusplus/dots/blob/master/.bash_profile#L68 by @stephenplusplus
#
# Note: code is already setup as a shortcut to VS Code. Replace with your own editor if different
#
# - arg 1 - url|username|repo remote endpoint, username on github, or name of
# repository.
# - arg 2 - (optional) name of repo
@jjhoncv
jjhoncv / jade and object and array and PHP.jade
Last active October 26, 2017 10:59
Gits help to how to pass and array of objects to jade or multiline object jade also integration jade with php also jade with html
//- Is only jade with var text type
- var list = []
- list.push({status: "active", text: "option 1"})
- list.push({status: "", text: "option 2"})
- list.push({status: "", text: "option 3"})
each(item, index in list)
li(class="#{item.status}")
a= item.text
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_enUS_EvaM]
@="Microsoft Eva Mobile - English (United States)"
"409"="Microsoft Eva Mobile - English (United States)"
"CLSID"="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
"LangDataPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,53,\
00,70,00,65,00,65,00,63,00,68,00,5f,00,4f,00,6e,00,65,00,43,00,6f,00,72,00,\
65,00,5c,00,45,00,6e,00,67,00,69,00,6e,00,65,00,73,00,5c,00,54,00,54,00,53,\
00,5c,00,65,00,6e,00,2d,00,55,00,53,00,5c,00,4d,00,53,00,54,00,54,00,53,00,\
@vishalbasnet23
vishalbasnet23 / clonerepo.sh
Last active April 14, 2017 13:24
Cloning repo and installing WordPress and gitignore file.
#!/bin/bash
if [ "$#" -eq 1 ]; then
if [ -d "$1" ]; then
# Control will enter here if $DIRECTORY exists.
echo "Repository $1 already exists"
exit 0
fi
printf "Are you cloning empty repo \n 1. Yes \n 2. No \n"
@lokhman
lokhman / ubuntu-hardening.md
Last active October 24, 2025 16:14
List of things for hardening Ubuntu

WARNING

May contain out of date information. Check the comments below!

The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

@tlewiscpp
tlewiscpp / gitrekt.sh
Created June 7, 2016 20:49
Bash shell script to clone repos
#!/bin/bash
userReply=""
GITHUB_DIR="/opt/GitHub"
GITHUB_URL="https://github.com/Pinguinsan"
GITHUB_ENDING=".git"
folderName=""
noFolderSpecifiedString="NONELOL"
function displayHelp() {
@lewebsimple
lewebsimple / dropdown-hover.js
Created March 20, 2017 23:53
[Bootstrap 4] Dropdown navbar menu on hover
// Dropdown navbar menu on hover
$('.dropdown-menu', this).css('margin-top', 0);
$('.dropdown').hover(function () {
$('.dropdown-toggle', this).trigger('click').toggleClass("disabled");
});
@derekbtw
derekbtw / sanfrancisco-font.css
Created June 5, 2017 23:06
San Francisco Web Font
/**
* http://applemusic.tumblr.com/
* https://jsfiddle.net/xq56dmrh/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
@sokhasen
sokhasen / LICENCE SUBLIME TEXT3
Last active November 1, 2023 13:18
Sublime Text 3.1.1 Serial key build is 3176
## Sublime Text 3.1.1 Serial key build is 3176
—– BEGIN LICENSE —–
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4