Skip to content

Instantly share code, notes, and snippets.

View nilkesede's full-sized avatar
🌀

Nil Késede nilkesede

🌀
View GitHub Profile
@nilkesede
nilkesede / autoexec.cfg
Last active September 3, 2024 03:43
CS2 config
// -allow_third_party_software +exec autoexec.cfg
alias "q" "quit"
alias "d" "disconnect"
alias "rr" "retry"
alias "c" "clear"
alias "+bang" "slot7; +lookatweapon"
alias "-bang" "-lookatweapon"
bind "z" "+bang"
@nilkesede
nilkesede / autoexec.cfg
Last active August 15, 2023 00:01
CSGO config
// -novid -nojoy -high -tickrate 128 -language bananagaming +exec autoexec.cfg
// -allow_third_party_software
// logaddress_add 1
// demo_index 1
// tv_snapshotrate 128
// tv_snapshotrate1 128
// incrementvar cl_crosshairsize 1.5 4000 3996
// voice_player_volume
alias "q" "quit"
@nilkesede
nilkesede / restore.sh
Last active March 3, 2022 08:58
restore databases
#!/bin/bash
folder=$1
for entry in `ls $folder`
do
database=${entry/.sql/}
echo "$database"
# docker exec -i mysql57
mysql -uroot -proot -e "drop database if exists $database;create database $database"
#!/bin/bash
# Clone all github.com repositories for a specified user/organization.
if [ $# -eq 0 ]
then
echo "Usage: $0 <type>(me|users|orgs) <user_name>"
exit;
fi
@nilkesede
nilkesede / dump.sh
Last active March 3, 2022 08:58
Dump from remote mysql
#!/bin/bash
host=$1
user=$2
password=$3
folder=$4
filter=''
if [ -n "$5" ]; then
filter=" like '$5'"
write-host "checking..."
# check for apache
$apache = scoop which httpd
if($lastexitcode -ne 0) { 'Apache isn''t installed. run ''scoop install apache'''; return }
# check for php
$php = scoop which php
if($lastexitcode -ne 0) { 'PHP isn''t installed. run ''scoop install php'''; return }
@nilkesede
nilkesede / fixcrlf.sh
Created February 17, 2016 19:57
Fix git CRLF
git config --global core.autocrlf true
git rm --cached -r .
git diff --cached --name-only -z | xargs -0 git add
git commit -m "Fix CRLF"
@nilkesede
nilkesede / forget.sh
Created November 8, 2015 21:54
Make git forget about ignored files
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
@nilkesede
nilkesede / hideDotFiles
Last active August 29, 2015 14:22
Hide dot files on Windows
ATTRIB +H /s /d C:\.*