git config --global branch.autosetuprebase always
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Smooth Follow from Standard Assets | |
| // Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
| // If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
| using UnityEngine; | |
| using System.Collections; | |
| public class SmoothFollow : MonoBehaviour { | |
| // The target we are following | |
| public Transform target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class Sprite2D : MonoBehaviour { | |
| public Camera gameCamera; | |
| private float initialRotation; | |
| void Start() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| box-sizing: border-box; | |
| } | |
| html, body { | |
| height: 100%; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "archive/zip" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "os" | |
| "path/filepath" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FTP_HOST=your.host.here | |
| FTP_DIR=www/ | |
| FTP_USER=yourFTPusername | |
| FTP_PASS=yourFTPpassword | |
| ftp-upload() { | |
| if [[ $1 == '' ]]; then | |
| print -P $FG[001]"Please specify one or more files"$FX[reset] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| SERVER_USER=<<your ssh user>> | |
| SERVER_HOST=<<your ssh server address>> | |
| PUBLIC_PATH="<<public url (ie https://myhost/pastes/)>>" | |
| SERVER_PATH="<<server path (ie /var/www/pastes/)>>" | |
| SERVER_FLAGS="<<additional flags (ex. custom ssh port)>>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://events.ccc.de/congress/2011/Fahrplan/attachments/2007_28C3_Effective_DoS_on_web_application_platforms.pdf | |
| // Original by pedrox (https://gist.github.com/pedrox/eb8d674bf2b8be63da0f) | |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "strconv" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am Hamcha on github. | |
| * I am hamcha (https://keybase.io/hamcha) on keybase. | |
| * I have a public key whose fingerprint is 7263 8B9E E0A4 4907 5546 3C9C A404 13D2 1021 EAEE | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var folders = DriveApp.getFoldersByName("Università"); | |
| var subfolder = null; | |
| if (folders.hasNext()) { | |
| var folder = folders.next(); | |
| var subfolders = folder.getFoldersByName("Sbobine"); | |
| if (subfolders.hasNext()) { | |
| var folder = subfolders.next(); | |
| var subsubfolders = folder.getFoldersByName("5o Anno"); | |
| if (subsubfolders.hasNext()) { | |
| var folder = subsubfolders.next(); |
NewerOlder