Skip to content

Instantly share code, notes, and snippets.

View NoNamePro0's full-sized avatar
:octocat:
Githubing

No Name Pro NoNamePro0

:octocat:
Githubing
  • Germany
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 17, 2024 01:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@GeirGrusom
GeirGrusom / csvdeserializer.cs
Created November 11, 2014 06:50
CsvDeserializer
public class CsvDeserializer<T>
where T : new()
{
private readonly string separator;
public CsvDeserializer()
: this(";")
{
}
@fourjr
fourjr / Discord Join Messages.js
Last active September 29, 2024 09:32
new member messages discord
loading lines: "https://gist.github.com/fourjr/f94fc112cef6da07fc274216d5755420"
Somewhere in 2020, they reduced the messages from 38 to 13.. This is the updated list on 5 December 2020.
Ctrl+Shift+I > Application > Frames > top > Scripts > a3762dfb973e0a7a21ba.js > ctrl+f "GUILD_MEMBER_JOIN" or https://canary.discordapp.com/assets/a3762dfb973e0a7a21ba.js
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_001: "[!!{username}!!](usernameOnClick) joined the party.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_002: "[!!{username}!!](usernameOnClick) is here.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_003: "Welcome, [!!{username}!!](usernameOnClick). We hope you brought pizza.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_004: "A wild [!!{username}!!](usernameOnClick) appeared.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_005: "[!!{username}!!](usernameOnClick) just landed.",
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@NoNamePro0
NoNamePro0 / themes.js
Last active April 21, 2020 13:49
Get Theme from URL Parameter and enable CSS theme
var head = document.getElementsByTagName('HEAD')[0];
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const theme = urlParams.get('theme')
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
@rexlManu
rexlManu / install-java8.sh
Last active April 27, 2022 16:43
Install java 8 on debian 10
apt install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common -y
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update -y
apt install adoptopenjdk-8-hotspot -y
clear
java -version
@NoNamePro0
NoNamePro0 / start.sh
Last active June 1, 2020 06:58
Run a command in the background witch automatically rerun
#!/bin/bash
name='yourName'
command="yourCommand" # Use ${0%/*} to go in the folder from the start.sh
timeout='120'
script_path="${0}"
if [[ $1 == "--non-background" ]]
then
@NoNamePro0
NoNamePro0 / gradle.sh
Created June 18, 2020 12:12
Install Gradle
#!/bin/bash
GRADLE_VERSION=6.5
wget "https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip" -P /gradle
unzip /gradle/gradle-$GRADLE_VERSION-bin.zip -d /gradle/
export PATH=$PATH:/gradle/gradle-$GRADLE_VERSION/bin
@NoNamePro0
NoNamePro0 / _nginx-default.conf
Last active August 9, 2020 17:55
NGINX default server configuration
# THIS GIST IS A SMALL DIRECTORY OF THE DEFAULT `/etc/nginx`